Home
last modified time | relevance | path

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

12

/third_party/icu/icu4c/source/test/cintltst/
Dcintltst.c494 char *newString; in austrdup() local
498 newString = (char*)ctst_malloc ( sizeof( char ) * 4 * ( length + 1 ) ); /* this shouldn't */ in austrdup()
500 if ( newString == NULL ) in austrdup()
503 u_austrcpy ( newString, unichars ); in austrdup()
505 return newString; in austrdup()
509 char *newString,*targetLimit,*target; in aescstrdup() local
526 newString = (char*)ctst_malloc ( sizeof(char) * 8 * (length +1)); in aescstrdup()
527 target = newString; in aescstrdup()
528 targetLimit = newString+sizeof(char) * 8 * (length +1); in aescstrdup()
533 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()
DRubyMessageBuilderContext.java168 keyField.setName(context, runtime.newString("key")); in map()
176 valueField.setName(context, runtime.newString("value")); in map()
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()
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()
DRubyFieldDescriptor.java122 this.name = context.runtime.newString(nameStr); in setName()
DRubyDescriptor.java253 klass.instance_variable_set(runtime.newString(Utils.DESCRIPTOR_INSTANCE_VAR), this); in buildClassFromDescriptor()
/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/jsoncpp/src/lib_json/
Djson_value.cpp113 char* newString = static_cast<char*>(malloc(length + 1)); in duplicateStringValue() local
114 if (newString == JSONCPP_NULL) { in duplicateStringValue()
118 memcpy(newString, value, length); in duplicateStringValue()
119 newString[length] = 0; in duplicateStringValue()
120 return newString; in duplicateStringValue()
134 char* newString = static_cast<char*>(malloc(actualLength)); in duplicateAndPrefixStringValue() local
135 if (newString == JSONCPP_NULL) { in duplicateAndPrefixStringValue()
139 *reinterpret_cast<unsigned*>(newString) = length; in duplicateAndPrefixStringValue()
140 memcpy(newString + sizeof(unsigned), value, length); in duplicateAndPrefixStringValue()
141 newString[actualLength - 1U] = in duplicateAndPrefixStringValue()
[all …]
/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/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/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/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/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/flutter/skia/third_party/externals/icu/source/i18n/
Dcollationbuilder.cpp1175 UnicodeString newNFDString, newString; in addTailComposites() local
1183 newNFDString, newString, errorCode)) { in addTailComposites()
1206 uint32_t ce32 = addIfDifferent(nfdPrefix, newString, in addTailComposites()
1219 UnicodeString &newNFDString, UnicodeString &newString, in mergeCompositeIntoString() argument
1239 newString.setTo(nfdString, 0, indexAfterLastStarter - lastStarterLength).append(composite); in mergeCompositeIntoString()
1293 newString.append(nfdString, sourceIndex, 0x7fffffff); in mergeCompositeIntoString()
1298 U_ASSERT(fcd.isNormalized(newString, errorCode)); in mergeCompositeIntoString()
1299 U_ASSERT(nfd.normalize(newString, errorCode) == newNFDString); // canonically equivalent in mergeCompositeIntoString()
/third_party/icu/icu4c/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/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()
Dcollationbuilder.h139 UnicodeString &newNFDString, UnicodeString &newString,
/third_party/node/deps/icu-small/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()
Dcollationbuilder.h139 UnicodeString &newNFDString, UnicodeString &newString,
/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()

12