/third_party/jerryscript/tests/jerry/ |
D | string-prototype-charat.js | 26 assert(Object.getOwnPropertyDescriptor(String.prototype.charAt, 'length').configurable === length_c… 28 assert(Object.getOwnPropertyDescriptor(String.prototype.charAt, 'length').enumerable === false); 30 assert(Object.getOwnPropertyDescriptor(String.prototype.charAt, 'length').writable === false); 32 assert(String.prototype.charAt.length === 1); 35 assert(String.prototype.charAt.call(new String()) === ""); 38 assert("hello world!".charAt(NaN) === "h"); 41 assert(String.prototype.charAt.call({}) === "["); 44 assert("hello world!".charAt(0) === "h"); 46 assert("hello world!".charAt(1) === "e"); 49 assert("hello world!".charAt(-Infinity) === ""); [all …]
|
D | regression-test-issue-3325.js | 16 assert (text.charAt(0) === "x"); 17 assert (text.charAt(-0.1) === "x"); 18 assert (text.charAt(-0.5) === "x"); 19 assert (text.charAt(-0.9) === "x"); 20 assert (text.charAt(0.85) === "x"); 22 assert (text.charAt(-0.5) !== ""); 23 assert (text.charAt(0.85) !== "");
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | UTF16.java | 219 public static int charAt(String source, int offset16) { in charAt() method in UTF16 220 char single = source.charAt(offset16); in charAt() 239 char trail = source.charAt(offset16); in _charAt() 248 char lead = source.charAt(offset16); in _charAt() 273 public static int charAt(CharSequence source, int offset16) { in charAt() method in UTF16 274 char single = source.charAt(offset16); in charAt() 293 char trail = source.charAt(offset16); in _charAt() 303 char lead = source.charAt(offset16); in _charAt() 329 public static int charAt(StringBuffer source, int offset16) { in charAt() method in UTF16 334 char single = source.charAt(offset16); in charAt() [all …]
|
D | MessagePattern.java | 941 char c=msg.charAt(index++); in parseMessage() 949 c=msg.charAt(index); in parseMessage() 965 if((index+1)<msg.length() && msg.charAt(index+1)=='\'') { in parseMessage() 1055 char c=msg.charAt(index); in parseArg() 1063 while(index<msg.length() && isArgTypeChar(msg.charAt(index))) { in parseArg() 1072 if(length==0 || ((c=msg.charAt(index))!=',' && c!='}')) { in parseArg() 1125 char c=msg.charAt(index++); in parseSimpleStyle() 1160 if(index==msg.length() || msg.charAt(index)=='}') { in parseChoiceStyle() 1183 char c=msg.charAt(index); in parseChoiceStyle() 1196 if(msg.charAt(index)=='}') { in parseChoiceStyle() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | UTF16.java | 199 public static int charAt(String source, int offset16) { in charAt() method in UTF16 200 char single = source.charAt(offset16); in charAt() 219 char trail = source.charAt(offset16); in _charAt() 228 char lead = source.charAt(offset16); in _charAt() 252 public static int charAt(CharSequence source, int offset16) { in charAt() method in UTF16 253 char single = source.charAt(offset16); in charAt() 272 char trail = source.charAt(offset16); in _charAt() 282 char lead = source.charAt(offset16); in _charAt() 307 public static int charAt(StringBuffer source, int offset16) { in charAt() method in UTF16 312 char single = source.charAt(offset16); in charAt() [all …]
|
D | MessagePattern.java | 870 char c=msg.charAt(index++); in parseMessage() 878 c=msg.charAt(index); in parseMessage() 894 if((index+1)<msg.length() && msg.charAt(index+1)=='\'') { in parseMessage() 984 char c=msg.charAt(index); in parseArg() 992 while(index<msg.length() && isArgTypeChar(msg.charAt(index))) { in parseArg() 1001 if(length==0 || ((c=msg.charAt(index))!=',' && c!='}')) { in parseArg() 1054 char c=msg.charAt(index++); in parseSimpleStyle() 1089 if(index==msg.length() || msg.charAt(index)=='}') { in parseChoiceStyle() 1112 char c=msg.charAt(index); in parseChoiceStyle() 1125 if(msg.charAt(index)=='}') { in parseChoiceStyle() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | CharsTrie.java | 189 return (remainingMatchLength_<0 && (node=chars_.charAt(pos))>=kMinValueLead) ? in current() 236 if(inUnit==chars_.charAt(pos++)) { in next() 240 return (length<0 && (node=chars_.charAt(pos))>=kMinValueLead) ? in next() 300 return (length<0 && (node=chars_.charAt(pos))>=kMinValueLead) ? in next() 303 inUnit=s.charAt(sIndex++); in next() 308 if(inUnit!=chars_.charAt(pos)) { in next() 315 int node=chars_.charAt(pos++); in next() 331 inUnit=s.charAt(sIndex++); in next() 333 node=chars_.charAt(pos++); in next() 337 if(inUnit!=chars_.charAt(pos)) { in next() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
D | CharsTrie.java | 179 return (remainingMatchLength_<0 && (node=chars_.charAt(pos))>=kMinValueLead) ? in current() 223 if(inUnit==chars_.charAt(pos++)) { in next() 227 return (length<0 && (node=chars_.charAt(pos))>=kMinValueLead) ? in next() 285 return (length<0 && (node=chars_.charAt(pos))>=kMinValueLead) ? in next() 288 inUnit=s.charAt(sIndex++); in next() 293 if(inUnit!=chars_.charAt(pos)) { in next() 300 int node=chars_.charAt(pos++); in next() 316 inUnit=s.charAt(sIndex++); in next() 318 node=chars_.charAt(pos++); in next() 322 if(inUnit!=chars_.charAt(pos)) { in next() [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | stringPropertyAccess.types | 6 var a = x.charAt(0); 8 >x.charAt(0) : string 9 >x.charAt : (pos: number) => string 11 >charAt : (pos: number) => string 14 var b = x.hasOwnProperty('charAt'); 16 >x.hasOwnProperty('charAt') : boolean 20 >'charAt' : "charAt" 22 var c = x['charAt'](0); 24 >x['charAt'](0) : string 25 >x['charAt'] : (pos: number) => string [all …]
|
D | instantiateContextuallyTypedGenericThis.types | 22 >$.each(lines, function(dit) { return dit.charAt(0) + this.charAt(1);}) : string[] 27 >function(dit) { return dit.charAt(0) + this.charAt(1);} : (this: string, dit: string) => string 30 return dit.charAt(0) + this.charAt(1); 31 >dit.charAt(0) + this.charAt(1) : string 32 >dit.charAt(0) : string 33 >dit.charAt : (pos: number) => string 35 >charAt : (pos: number) => string 37 >this.charAt(1) : string 38 >this.charAt : (pos: number) => string 40 >charAt : (pos: number) => string
|
D | stringPropertyAccess.symbols | 5 var a = x.charAt(0); 7 >x.charAt : Symbol(String.charAt, Decl(lib.es5.d.ts, --, --)) 9 >charAt : Symbol(String.charAt, Decl(lib.es5.d.ts, --, --)) 11 var b = x.hasOwnProperty('charAt'); 17 var c = x['charAt'](0); 20 >'charAt' : Symbol(String.charAt, Decl(lib.es5.d.ts, --, --))
|
D | instantiateContextuallyTypedGenericThis.symbols | 37 return dit.charAt(0) + this.charAt(1); 38 >dit.charAt : Symbol(String.charAt, Decl(lib.es5.d.ts, --, --)) 40 >charAt : Symbol(String.charAt, Decl(lib.es5.d.ts, --, --)) 41 >this.charAt : Symbol(String.charAt, Decl(lib.es5.d.ts, --, --)) 43 >charAt : Symbol(String.charAt, Decl(lib.es5.d.ts, --, --))
|
D | commaOperatorsMultipleOperators.types | 107 ++NUMBER, STRING.charAt(0), new Object(); 108 >++NUMBER, STRING.charAt(0), new Object() : Object 109 >++NUMBER, STRING.charAt(0) : string 112 >STRING.charAt(0) : string 113 >STRING.charAt : (pos: number) => string 115 >charAt : (pos: number) => string 129 var resultIsObject2 = (++NUMBER, STRING.charAt(0), new Object()); 131 >(++NUMBER, STRING.charAt(0), new Object()) : Object 132 >++NUMBER, STRING.charAt(0), new Object() : Object 133 >++NUMBER, STRING.charAt(0) : string [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | PatternProps.java | 94 while(i<s.length() && isWhiteSpace(s.charAt(i))) { in skipWhiteSpace() 104 if(s.length()==0 || (!isWhiteSpace(s.charAt(0)) && !isWhiteSpace(s.charAt(s.length()-1)))) { in trimWhiteSpace() 109 while(start<limit && isWhiteSpace(s.charAt(start))) { in trimWhiteSpace() 115 while(isWhiteSpace(s.charAt(limit-1))) { in trimWhiteSpace() 127 … (!Character.isSpaceChar(s.charAt(0)) && !Character.isSpaceChar(s.charAt(s.length() - 1)))) { in trimSpaceChar() 132 while (start < limit && Character.isSpaceChar(s.charAt(start))) { in trimSpaceChar() 138 while (isWhiteSpace(s.charAt(limit - 1))) { in trimSpaceChar() 157 if(isSyntaxOrWhiteSpace(s.charAt(start++))) { in isIdentifier() 175 if(isSyntaxOrWhiteSpace(s.charAt(start++))) { in isIdentifier() 188 while(i<s.length() && !isSyntaxOrWhiteSpace(s.charAt(i))) { in skipIdentifier()
|
D | SimpleFormatterImpl.java | 83 assert pair[1].charAt(0) == 2; in compileToStringMinMaxArguments() 99 char c = pattern.charAt(i++); in compileToStringMinMaxArguments() 101 if (i < patternLength && (c = pattern.charAt(i)) == '\'') { in compileToStringMinMaxArguments() 123 0 <= (argNumber = pattern.charAt(i) - '0') && argNumber <= 9 && in compileToStringMinMaxArguments() 124 pattern.charAt(i + 1) == '}') { in compileToStringMinMaxArguments() 132 if (i < patternLength && '1' <= (c = pattern.charAt(i++)) && c <= '9') { in compileToStringMinMaxArguments() 134 while (i < patternLength && '0' <= (c = pattern.charAt(i++)) && c <= '9') { in compileToStringMinMaxArguments() 185 return compiledPattern.charAt(0); in getArgumentLimit() 272 int n = compiledPattern.charAt(i++); in formatAndReplace() 302 int segmentLength = compiledPattern.charAt(i++) - ARG_NUM_LIMIT; in getTextWithNoArguments() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
D | SimpleFormatterImpl.java | 85 assert pair[1].charAt(0) == 2; in compileToStringMinMaxArguments() 101 char c = pattern.charAt(i++); in compileToStringMinMaxArguments() 103 if (i < patternLength && (c = pattern.charAt(i)) == '\'') { in compileToStringMinMaxArguments() 125 0 <= (argNumber = pattern.charAt(i) - '0') && argNumber <= 9 && in compileToStringMinMaxArguments() 126 pattern.charAt(i + 1) == '}') { in compileToStringMinMaxArguments() 134 if (i < patternLength && '1' <= (c = pattern.charAt(i++)) && c <= '9') { in compileToStringMinMaxArguments() 136 while (i < patternLength && '0' <= (c = pattern.charAt(i++)) && c <= '9') { in compileToStringMinMaxArguments() 187 return compiledPattern.charAt(0); in getArgumentLimit() 274 int n = compiledPattern.charAt(i++); in formatAndReplace() 304 int segmentLength = compiledPattern.charAt(i++) - ARG_NUM_LIMIT; in getTextWithNoArguments() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/locale/ |
D | AsciiUtil.java | 28 char c1 = s1.charAt(i); in caseIgnoreMatch() 29 char c2 = s2.charAt(i); in caseIgnoreMatch() 63 char c = s.charAt(idx); in toLowerString() 73 buf.append(toLower(s.charAt(idx))); in toLowerString() 81 char c = s.charAt(idx); in toUpperString() 91 buf.append(toUpper(s.charAt(idx))); in toUpperString() 101 char c = s.charAt(idx); in toTitleString() 114 buf.append(toUpper(s.charAt(idx))); in toTitleString() 118 buf.append(toLower(s.charAt(idx))); in toTitleString() 130 if (!isAlpha(s.charAt(i))) { in isAlphaString() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/ |
D | AsciiUtil.java | 24 char c1 = s1.charAt(i); in caseIgnoreMatch() 25 char c2 = s2.charAt(i); in caseIgnoreMatch() 59 char c = s.charAt(idx); in toLowerString() 69 buf.append(toLower(s.charAt(idx))); in toLowerString() 77 char c = s.charAt(idx); in toUpperString() 87 buf.append(toUpper(s.charAt(idx))); in toUpperString() 97 char c = s.charAt(idx); in toTitleString() 110 buf.append(toUpper(s.charAt(idx))); in toTitleString() 114 buf.append(toLower(s.charAt(idx))); in toTitleString() 126 if (!isAlpha(s.charAt(i))) { in isAlphaString() [all …]
|
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | UTF16CollationIterator.java | 75 char c = seq.charAt(pos++); in nextCodePoint() 78 Character.isLowSurrogate(trail = seq.charAt(pos))) { in nextCodePoint() 91 char c = seq.charAt(--pos); in previousCodePoint() 94 Character.isHighSurrogate(lead = seq.charAt(pos - 1))) { in previousCodePoint() 107 char c = seq.charAt(pos++); in handleNextCE32() 115 if(Character.isLowSurrogate(trail = seq.charAt(pos))) { ++pos; } in handleGetTrailSurrogate() 124 char c = seq.charAt(pos++); in forwardNumCodePoints() 127 Character.isLowSurrogate(seq.charAt(pos))) { in forwardNumCodePoints() 136 char c = seq.charAt(--pos); in backwardNumCodePoints() 139 Character.isHighSurrogate(seq.charAt(pos-1))) { in backwardNumCodePoints()
|
D | CollationRuleParser.java | 135 char c = rules.charAt(ruleIndex); in parse() 172 if(ruleIndex < rules.length() && rules.charAt(ruleIndex) == 0x23) { in parseRuleChain() 214 PatternProps.isWhiteSpace(rules.charAt(j)) && in parseResetAndPosition() 216 0x31 <= (c = rules.charAt(j)) && c <= 0x33 && in parseResetAndPosition() 217 rules.charAt(j + 1) == 0x5d) { in parseResetAndPosition() 228 if(rules.charAt(i) == 0x5b) { // '[' in parseResetAndPosition() 248 char c = rules.charAt(i++); in parseRelationOperator() 251 if(i < rules.length() && rules.charAt(i) == 0x3c) { // << in parseRelationOperator() 253 if(i < rules.length() && rules.charAt(i) == 0x3c) { // <<< in parseRelationOperator() 255 if(i < rules.length() && rules.charAt(i) == 0x3c) { // <<<< in parseRelationOperator() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/ |
D | UTF16CollationIterator.java | 77 char c = seq.charAt(pos++); in nextCodePoint() 80 Character.isLowSurrogate(trail = seq.charAt(pos))) { in nextCodePoint() 93 char c = seq.charAt(--pos); in previousCodePoint() 96 Character.isHighSurrogate(lead = seq.charAt(pos - 1))) { in previousCodePoint() 109 char c = seq.charAt(pos++); in handleNextCE32() 117 if(Character.isLowSurrogate(trail = seq.charAt(pos))) { ++pos; } in handleGetTrailSurrogate() 126 char c = seq.charAt(pos++); in forwardNumCodePoints() 129 Character.isLowSurrogate(seq.charAt(pos))) { in forwardNumCodePoints() 138 char c = seq.charAt(--pos); in backwardNumCodePoints() 141 Character.isHighSurrogate(seq.charAt(pos-1))) { in backwardNumCodePoints()
|
D | CollationRuleParser.java | 139 char c = rules.charAt(ruleIndex); in parse() 176 if(ruleIndex < rules.length() && rules.charAt(ruleIndex) == 0x23) { in parseRuleChain() 218 PatternProps.isWhiteSpace(rules.charAt(j)) && in parseResetAndPosition() 220 0x31 <= (c = rules.charAt(j)) && c <= 0x33 && in parseResetAndPosition() 221 rules.charAt(j + 1) == 0x5d) { in parseResetAndPosition() 232 if(rules.charAt(i) == 0x5b) { // '[' in parseResetAndPosition() 252 char c = rules.charAt(i++); in parseRelationOperator() 255 if(i < rules.length() && rules.charAt(i) == 0x3c) { // << in parseRelationOperator() 257 if(i < rules.length() && rules.charAt(i) == 0x3c) { // <<< in parseRelationOperator() 259 if(i < rules.length() && rules.charAt(i) == 0x3c) { // <<<< in parseRelationOperator() [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/ |
D | BiDiConformanceTest.java | 55 if (line.charAt(lineIndex) == '@') { in TestBidiTest() 71 if (!skipWhitespace() || line.charAt(lineIndex++) != ';') { in TestBidiTest() 383 while(skipWhitespace() && (c0=line.charAt(lineIndex))!=';') { in parseInputStringFromBiDiClasses() 388 if((lineIndex+2)<line.length() && line.charAt(lineIndex+1)=='R') { in parseInputStringFromBiDiClasses() 389 c2=line.charAt(lineIndex+2); in parseInputStringFromBiDiClasses() 401 if((lineIndex+2)<line.length() && line.charAt(lineIndex+1)=='L') { in parseInputStringFromBiDiClasses() 402 c2=line.charAt(lineIndex+2); in parseInputStringFromBiDiClasses() 416 } else if((c1=line.charAt(lineIndex+1))=='N') { in parseInputStringFromBiDiClasses() 426 } else if((c1=line.charAt(lineIndex+1))=='L') { in parseInputStringFromBiDiClasses() 431 } else if(c0=='C' && (lineIndex+1)<line.length() && line.charAt(lineIndex+1)=='S') { in parseInputStringFromBiDiClasses() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/bidi/ |
D | BiDiConformanceTest.java | 58 if (line.charAt(lineIndex) == '@') { in TestBidiTest() 74 if (!skipWhitespace() || line.charAt(lineIndex++) != ';') { in TestBidiTest() 386 while(skipWhitespace() && (c0=line.charAt(lineIndex))!=';') { in parseInputStringFromBiDiClasses() 391 if((lineIndex+2)<line.length() && line.charAt(lineIndex+1)=='R') { in parseInputStringFromBiDiClasses() 392 c2=line.charAt(lineIndex+2); in parseInputStringFromBiDiClasses() 404 if((lineIndex+2)<line.length() && line.charAt(lineIndex+1)=='L') { in parseInputStringFromBiDiClasses() 405 c2=line.charAt(lineIndex+2); in parseInputStringFromBiDiClasses() 419 } else if((c1=line.charAt(lineIndex+1))=='N') { in parseInputStringFromBiDiClasses() 429 } else if((c1=line.charAt(lineIndex+1))=='L') { in parseInputStringFromBiDiClasses() 434 } else if(c0=='C' && (lineIndex+1)<line.length() && line.charAt(lineIndex+1)=='S') { in parseInputStringFromBiDiClasses() [all …]
|
/third_party/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/ |
D | UTF16Util.java | 30 int ch = s.charAt(i); in nextCodePoint() 32 int ch2 = s.charAt(i); in nextCodePoint() 48 int ch = s.charAt(--i); in prevCodePoint() 50 int ch2 = s.charAt(i); in prevCodePoint() 66 int ch = s.charAt(i); in nextCodePoint() 68 int ch2 = s.charAt(i); in nextCodePoint() 84 int ch = s.charAt(--i); in prevCodePoint() 86 int ch2 = s.charAt(i); in prevCodePoint() 177 ch = source.charAt(i); in countCodePoint() 205 ch = source.charAt(i); in countCodePoint() [all …]
|