Lines Matching refs:code

52 function isPathSeparator(code) {
53 return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
56 function isPosixPathSeparator(code) {
57 return code === CHAR_FORWARD_SLASH;
60 function isWindowsDeviceRoot(code) {
61 return (code >= CHAR_UPPERCASE_A && code <= CHAR_UPPERCASE_Z) ||
62 (code >= CHAR_LOWERCASE_A && code <= CHAR_LOWERCASE_Z);
71 let code = 0;
74 code = StringPrototypeCharCodeAt(path, i);
75 else if (isPathSeparator(code))
78 code = CHAR_FORWARD_SLASH;
80 if (isPathSeparator(code)) {
121 } else if (code === CHAR_DOT && dots !== -1) {
197 const code = StringPrototypeCharCodeAt(path, 0);
201 if (isPathSeparator(code)) {
206 } else if (isPathSeparator(code)) {
250 } else if (isWindowsDeviceRoot(code) &&
312 const code = StringPrototypeCharCodeAt(path, 0);
318 return isPosixPathSeparator(code) ? '\\' : path;
320 if (isPathSeparator(code)) {
370 } else if (isWindowsDeviceRoot(code) &&
408 const code = StringPrototypeCharCodeAt(path, 0);
409 return isPathSeparator(code) ||
412 isWindowsDeviceRoot(code) &&
631 const code = StringPrototypeCharCodeAt(resolvedPath, 2);
632 if (code !== CHAR_QUESTION_MARK && code !== CHAR_DOT) {
660 const code = StringPrototypeCharCodeAt(path, 0);
665 return isPathSeparator(code) ? path : '.';
669 if (isPathSeparator(code)) {
714 } else if (isWindowsDeviceRoot(code) &&
772 const code = StringPrototypeCharCodeAt(path, i);
773 if (isPathSeparator(code)) {
789 if (code === StringPrototypeCharCodeAt(suffix, extIdx)) {
858 const code = StringPrototypeCharCodeAt(path, i);
859 if (isPathSeparator(code)) {
874 if (code === CHAR_DOT) {
921 let code = StringPrototypeCharCodeAt(path, 0);
924 if (isPathSeparator(code)) {
934 if (isPathSeparator(code)) {
973 } else if (isWindowsDeviceRoot(code) &&
1008 code = StringPrototypeCharCodeAt(path, i);
1009 if (isPathSeparator(code)) {
1024 if (code === CHAR_DOT) {
1320 const code = StringPrototypeCharCodeAt(path, i);
1321 if (code === CHAR_FORWARD_SLASH) {
1337 if (code === StringPrototypeCharCodeAt(suffix, extIdx)) {
1394 const code = StringPrototypeCharCodeAt(path, i);
1395 if (code === CHAR_FORWARD_SLASH) {
1410 if (code === CHAR_DOT) {
1475 const code = StringPrototypeCharCodeAt(path, i);
1476 if (code === CHAR_FORWARD_SLASH) {
1491 if (code === CHAR_DOT) {