Home
last modified time | relevance | path

Searched refs:newString (Results 1 – 25 of 51) sorted by relevance

123

/third_party/node/deps/npm/node_modules/diff/lib/diff/
Dbase.js16 diff: function diff(oldString, newString) {
44 newString = this.castInput(newString);
46 newString = this.removeEmpty(this.tokenize(newString));
47 var newLen = newString.length,
61 var oldPos = this.extractCommon(bestPath[0], newString, oldString, 0);
66 value: this.join(newString),
67 count: newString.length
111 …_oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); // If we have hit the …
114 … return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));
177 extractCommon: function extractCommon(basePath, newString, oldString, diagonalPath) {
[all …]
/third_party/icu/icu4c/source/test/cintltst/
Dcintltst.c495 char *newString; in austrdup() local
499 newString = (char*)ctst_malloc ( sizeof( char ) * 4 * ( length + 1 ) ); /* this shouldn't */ in austrdup()
501 if ( newString == NULL ) in austrdup()
504 u_austrcpy ( newString, unichars ); in austrdup()
506 return newString; in austrdup()
510 char *newString,*targetLimit,*target; in aescstrdup() local
527 newString = (char*)ctst_malloc ( sizeof(char) * 8 * (length +1)); in aescstrdup()
528 target = newString; in aescstrdup()
529 targetLimit = newString+sizeof(char) * 8 * (length +1); in aescstrdup()
534 return newString; in aescstrdup()
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyDescriptorPool.java134 ((RubyEnumDescriptor) symtab.get(runtime.newString(enumName))) in buildFileDescriptor()
139 … symtab.get(runtime.newString(Utils.unescapeIdentifier(descriptor.getName())))); in buildFileDescriptor()
148 … runtime.newString(Utils.unescapeIdentifier(fieldDescriptor.getMessageType().getName()))); in buildFileDescriptor()
153 … runtime.newString(Utils.unescapeIdentifier(fieldDescriptor.getEnumType().getName()))); in buildFileDescriptor()
DUtils.java153 IRubyObject wrapped = runtime.newString(((ByteString) value).toStringUtf8()); in wrapPrimaryValue()
158 IRubyObject wrapped = runtime.newString(value.toString()); in wrapPrimaryValue()
240 fieldDef.setLabel(context, runtime.newString(label)); in msgdefCreateField()
DRubyMessage.java166 return getRuntime().newString(sb.toString()); in inspect()
188 return context.runtime.newString(new ByteList(digest.digest())); in hash()
258 RubyString equalSign = context.runtime.newString(Utils.EQUAL_SIGN); in methodMissing()
316 return context.runtime.newString(new ByteList(message.build(context).toByteArray())); in encode()
601 return runtime.newString(value.toString()); in wrapField()
783 context.runtime.newString("value")); in newMapForField()
DRubyMessageBuilderContext.java168 keyField.setName(context, runtime.newString("key")); in map()
176 valueField.setName(context, runtime.newString("value")); in map()
DRubyOneofDescriptor.java64 this.name = context.runtime.newString(name.asJavaString()); in setName()
DRubyEnumDescriptor.java176 enumModule.instance_variable_set(runtime.newString(Utils.DESCRIPTOR_INSTANCE_VAR), this); in buildModuleFromDescriptor()
/third_party/node/deps/npm/node_modules/diff/lib/
Dindex.es6.js3 diff: function diff(oldString, newString) {
28 newString = this.castInput(newString);
30 newString = this.removeEmpty(this.tokenize(newString));
31 var newLen = newString.length,
45 var oldPos = this.extractCommon(bestPath[0], newString, oldString, 0);
50 value: this.join(newString),
51 count: newString.length
91 …_oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); // If we have hit the …
94 … return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));
149 extractCommon: function extractCommon(basePath, newString, oldString, diagonalPath) {
[all …]
Dindex.mjs3 diff: function diff(oldString, newString) {
28 newString = this.castInput(newString);
30 newString = this.removeEmpty(this.tokenize(newString));
31 var newLen = newString.length,
45 var oldPos = this.extractCommon(bestPath[0], newString, oldString, 0);
50 value: this.join(newString),
51 count: newString.length
91 …_oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); // If we have hit the …
94 … return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));
149 extractCommon: function extractCommon(basePath, newString, oldString, diagonalPath) {
[all …]
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/2.1/better_inference_for_literal_types/
Dbetter_inference_for_literal_types_3.ts24 const newString = "hello"; constant
26 let newV = newString;
/third_party/node/deps/npm/node_modules/diff/dist/
Ddiff.js46 diff: function diff(oldString, newString) {
71 newString = this.castInput(newString);
73 newString = this.removeEmpty(this.tokenize(newString));
74 var newLen = newString.length,
88 var oldPos = this.extractCommon(bestPath[0], newString, oldString, 0);
93 value: this.join(newString),
94 count: newString.length
134 …_oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); // If we have hit the …
137 … return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));
192 extractCommon: function extractCommon(basePath, newString, oldString, diagonalPath) {
[all …]
/third_party/glslang/glslang/MachineIndependent/
DScan.h187 void setString(int newString) in setString() argument
189 logicalSourceLoc.string = newString; in setString()
190 loc[getLastValidSourceIndex()].string = newString; in setString()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DCodedOutputStreamTest.java539 newString(Character.MIN_HIGH_SURROGATE),
540 "foobar" + newString(Character.MIN_HIGH_SURROGATE),
541 newString(Character.MIN_LOW_SURROGATE),
542 "foobar" + newString(Character.MIN_LOW_SURROGATE),
543 newString(Character.MIN_HIGH_SURROGATE, Character.MIN_HIGH_SURROGATE)
567 String invalidString = newString(Character.MIN_HIGH_SURROGATE, 'f', 'o', 'o', 'b', 'a', 'r');
688 private static String newString(char... chars) {
DNioByteStringTest.java543 ByteString newString = new NioByteString(backingBuffer); in testPeekCachedHashCode() local
547 newString.peekCachedHashCode()); in testPeekCachedHashCode()
548 newString.hashCode(); in testPeekCachedHashCode()
552 newString.peekCachedHashCode()); in testPeekCachedHashCode()
/third_party/lzma/CPP/Common/
DMyString.cpp900 void AString::Replace(const AString &oldString, const AString &newString) in Replace() argument
904 if (oldString == newString) in Replace()
907 unsigned newLen = newString.Len(); in Replace()
916 Insert((unsigned)pos, newString); in Replace()
1545 void UString::Replace(const UString &oldString, const UString &newString) in Replace() argument
1549 if (oldString == newString) in Replace()
1552 unsigned newLen = newString.Len(); in Replace()
1561 Insert((unsigned)pos, newString); in Replace()
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationBuilder.java917 StringBuilder newNFDString = new StringBuilder(), newString = new StringBuilder();
925 newNFDString, newString)) {
948 int ce32 = addIfDifferent(nfdPrefix, newString,
959 StringBuilder newNFDString, StringBuilder newString) {
978 newString.setLength(0);
979 newString.append(nfdString, 0, indexAfterLastStarter - lastStarterLength)
1034 newString.append(nfdString, sourceIndex, nfdString.length());
1039 assert(fcd.isNormalized(newString));
1040 assert(nfd.normalize(newString).equals(newNFDString.toString())); // canonically equivalent
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/
DCollationBuilder.java921 StringBuilder newNFDString = new StringBuilder(), newString = new StringBuilder();
929 newNFDString, newString)) {
952 int ce32 = addIfDifferent(nfdPrefix, newString,
963 StringBuilder newNFDString, StringBuilder newString) {
982 newString.setLength(0);
983 newString.append(nfdString, 0, indexAfterLastStarter - lastStarterLength)
1038 newString.append(nfdString, sourceIndex, nfdString.length());
1043 assert(fcd.isNormalized(newString));
1044 assert(nfd.normalize(newString).equals(newNFDString.toString())); // canonically equivalent
/third_party/icu/docs/userguide/format_parse/messages/
Dexamples.md164 char *newString;
167 newString = (char*)malloc ( sizeof( char ) * 4 * ( length + 1 ) );
168 if ( newString == NULL )
171 u_austrcpy ( newString, unichars );
173 return newString;
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DRBBIMonkeyTest.java522 StringBuilder newString = new StringBuilder(); in set() local
533newString.length() > 0 && Character.isHighSurrogate(newString.charAt(newString.length()-1))) { in set()
541 newString.appendCodePoint(c); in set()
545 fString = newString.toString(); in set()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/rbbi/
DRBBIMonkeyTest.java525 StringBuilder newString = new StringBuilder(); in set() local
536newString.length() > 0 && Character.isHighSurrogate(newString.charAt(newString.length()-1))) { in set()
544 newString.appendCodePoint(c); in set()
548 fString = newString.toString(); in set()
/third_party/skia/third_party/externals/icu/source/i18n/
Dcollationbuilder.cpp1174 UnicodeString newNFDString, newString; in addTailComposites() local
1182 newNFDString, newString, errorCode)) { in addTailComposites()
1205 uint32_t ce32 = addIfDifferent(nfdPrefix, newString, in addTailComposites()
1218 UnicodeString &newNFDString, UnicodeString &newString, in mergeCompositeIntoString() argument
1238 newString.setTo(nfdString, 0, indexAfterLastStarter - lastStarterLength).append(composite); in mergeCompositeIntoString()
1292 newString.append(nfdString, sourceIndex, 0x7fffffff); in mergeCompositeIntoString()
1297 U_ASSERT(fcd.isNormalized(newString, errorCode)); in mergeCompositeIntoString()
1298 U_ASSERT(nfd.normalize(newString, errorCode) == newNFDString); // canonically equivalent in mergeCompositeIntoString()
/third_party/icu/icu4c/source/i18n/
Dcollationbuilder.cpp1180 UnicodeString newNFDString, newString; in addTailComposites() local
1188 newNFDString, newString, errorCode)) { in addTailComposites()
1211 uint32_t ce32 = addIfDifferent(nfdPrefix, newString, in addTailComposites()
1224 UnicodeString &newNFDString, UnicodeString &newString, in mergeCompositeIntoString() argument
1244 newString.setTo(nfdString, 0, indexAfterLastStarter - lastStarterLength).append(composite); in mergeCompositeIntoString()
1298 newString.append(nfdString, sourceIndex, 0x7fffffff); in mergeCompositeIntoString()
1303 U_ASSERT(fcd.isNormalized(newString, errorCode)); in mergeCompositeIntoString()
1304 U_ASSERT(nfd.normalize(newString, errorCode) == newNFDString); // canonically equivalent in mergeCompositeIntoString()
/third_party/node/deps/icu-small/source/i18n/
Dcollationbuilder.cpp1180 UnicodeString newNFDString, newString; in addTailComposites() local
1188 newNFDString, newString, errorCode)) { in addTailComposites()
1211 uint32_t ce32 = addIfDifferent(nfdPrefix, newString, in addTailComposites()
1224 UnicodeString &newNFDString, UnicodeString &newString, in mergeCompositeIntoString() argument
1244 newString.setTo(nfdString, 0, indexAfterLastStarter - lastStarterLength).append(composite); in mergeCompositeIntoString()
1298 newString.append(nfdString, sourceIndex, 0x7fffffff); in mergeCompositeIntoString()
1303 U_ASSERT(fcd.isNormalized(newString, errorCode)); in mergeCompositeIntoString()
1304 U_ASSERT(nfd.normalize(newString, errorCode) == newNFDString); // canonically equivalent in mergeCompositeIntoString()
/third_party/skia/src/core/
DSkString.cpp370 SkString newString(len); in resize() local
371 char* dest = newString.writable_str(); in resize()
375 this->swap(newString); in resize()

123