Skip to content

Commit

Permalink
Revert "Merge pull request #83060 from microsoft/joh/uri-parse"
Browse files Browse the repository at this point in the history
This reverts commit 30886e2, reversing
changes made to 525f1e4.
  • Loading branch information
jrieken committed Oct 30, 2019
1 parent f478d91 commit 58479e8
Show file tree
Hide file tree
Showing 13 changed files with 305 additions and 646 deletions.
30 changes: 1 addition & 29 deletions src/vs/base/common/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,34 +338,6 @@ export function compareIgnoreCase(a: string, b: string): number {
}
}

/**
* [0-9]
*/
export function isAsciiDigit(code: number): boolean {
return code >= CharCode.Digit0 && code <= CharCode.Digit9;
}

/**
* [a-f]
*/
export function isLowerAsciiHex(code: number): boolean {
return code >= CharCode.a && code <= CharCode.f;
}

/**
* [A-F]
*/
export function isUpperAsciiHex(code: number): boolean {
return code >= CharCode.A && code <= CharCode.F;
}

/**
* [0-9a-fA-F]
*/
export function isAsciiHex(code: number): boolean {
return isAsciiDigit(code) || isLowerAsciiHex(code) || isUpperAsciiHex(code);
}

export function isLowerAsciiLetter(code: number): boolean {
return code >= CharCode.a && code <= CharCode.z;
}
Expand All @@ -374,7 +346,7 @@ export function isUpperAsciiLetter(code: number): boolean {
return code >= CharCode.A && code <= CharCode.Z;
}

export function isAsciiLetter(code: number): boolean {
function isAsciiLetter(code: number): boolean {
return isLowerAsciiLetter(code) || isUpperAsciiLetter(code);
}

Expand Down
Loading

0 comments on commit 58479e8

Please sign in to comment.