/external/caliper/examples/src/main/java/examples/ |
D | StringBuilderBenchmark.java | 32 StringBuilder sb = new StringBuilder(); in appendBoolean() 44 StringBuilder sb = new StringBuilder(); in appendChar() 54 StringBuilder sb = new StringBuilder(); in appendCharArray() 64 StringBuilder sb = new StringBuilder(); in appendCharSequence() 74 StringBuilder sb = new StringBuilder(); in appendDouble() 84 StringBuilder sb = new StringBuilder(); in appendFloat() 94 StringBuilder sb = new StringBuilder(); in appendInt() 104 StringBuilder sb = new StringBuilder(); in appendLong() 114 StringBuilder sb = new StringBuilder(); in appendObject() 124 StringBuilder sb = new StringBuilder(); in appendString() [all …]
|
/external/pigweed/pw_string/ |
D | string_builder.cc | 24 void StringBuilder::clear() { in clear() 31 StringBuilder& StringBuilder::append(size_t count, char ch) { in append() 37 StringBuilder& StringBuilder::append(const char* str, size_t count) { in append() 43 StringBuilder& StringBuilder::append(const char* str) { in append() 50 StringBuilder& StringBuilder::append(const std::string_view& str) { in append() 54 StringBuilder& StringBuilder::append(const std::string_view& str, in append() 65 size_t StringBuilder::ResizeAndTerminate(size_t chars_to_append) { in ResizeAndTerminate() 78 void StringBuilder::resize(size_t new_size) { in resize() 88 StringBuilder& StringBuilder::Format(const char* format, ...) { in Format() 97 StringBuilder& StringBuilder::FormatVaList(const char* format, va_list args) { in FormatVaList() [all …]
|
D | string_builder_test.cc | 59 TEST(StringBuilder, EmptyBuffer_SizeAndMaxSizeAreCorrect) { in TEST() argument 60 StringBuilder sb(std::span<char>{}); in TEST() 71 TEST(StringBuilder, EmptyBuffer_StreamOutput_WritesNothing) { in TEST() argument 75 StringBuilder sb(std::span(buffer, 0)); in TEST() 82 TEST(StringBuilder, EmptyBuffer_Append_WritesNothing) { in TEST() argument 86 StringBuilder sb(std::span(buffer, 0)); in TEST() 92 TEST(StringBuilder, EmptyBuffer_Resize_WritesNothing) { in TEST() argument 96 StringBuilder sb(std::span(buffer, 0)); in TEST() 103 TEST(StringBuilder, EmptyBuffer_AppendEmpty_ResourceExhausted) { in TEST() argument 104 StringBuilder sb(std::span<char>{}); in TEST() [all …]
|
D | docs.rst | 37 pw::StringBuilder 39 ``pw::StringBuilder`` facilitates building formatted strings in a fixed-size 43 Supporting custom types with StringBuilder 45 As with ``std::ostream``, StringBuilder supports printing custom types by 58 pw::StringBuilder& operator<<(pw::StringBuilder& sb, const MyType& value) { 64 Internally, ``StringBuilder`` uses the ``ToString`` function to print. The 66 ``StringBuilder``, though it is recommended to overload ``operator<<`` instead. 82 Size report: replacing snprintf with pw::StringBuilder 84 StringBuilder is safe, flexible, and results in much smaller code size than 86 should use StringBuilder with care. [all …]
|
/external/pigweed/pw_string/public/pw_string/ |
D | string_builder.h | 73 class StringBuilder { 76 constexpr StringBuilder(std::span<char> buffer) : buffer_(buffer), size_(0) { in StringBuilder() function 79 StringBuilder(std::span<std::byte> buffer) in StringBuilder() function 80 : StringBuilder( in StringBuilder() 85 StringBuilder(const StringBuilder&) = delete; 87 StringBuilder& operator=(const StringBuilder&) = delete; 157 StringBuilder& append(size_t count, char ch); 164 StringBuilder& append(const char* str, size_t count); 173 StringBuilder& append(const char* str); 176 StringBuilder& append(const std::string_view& str); [all …]
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/io/ |
D | TestJsonStringEncoder.java | 22 result = encoder.quoteAsString(new StringBuilder("foobar")); in testQuoteAsString() 24 result = encoder.quoteAsString(new StringBuilder("\"x\"")); in testQuoteAsString() 30 StringBuilder output = new StringBuilder(); in testQuoteCharSequenceAsString() 31 StringBuilder builder = new StringBuilder(); in testQuoteCharSequenceAsString() 46 StringBuilder sb = new StringBuilder(); in testQuoteLongAsString() 47 StringBuilder sb2 = new StringBuilder(); in testQuoteLongAsString() 61 StringBuilder output = new StringBuilder(); in testQuoteLongCharSequenceAsString() 62 StringBuilder input = new StringBuilder(); in testQuoteLongCharSequenceAsString() 63 StringBuilder sb2 = new StringBuilder(); in testQuoteLongCharSequenceAsString() 126 StringBuilder builder = new StringBuilder(); in testCharSequenceWithCtrlChars() [all …]
|
/external/webrtc/rtc_base/strings/ |
D | string_builder.h | 89 class StringBuilder { 91 StringBuilder() {} in StringBuilder() function 92 explicit StringBuilder(absl::string_view s) : str_(s) {} in StringBuilder() function 95 StringBuilder(const StringBuilder&) = delete; 96 StringBuilder& operator=(const StringBuilder&) = delete; 98 StringBuilder& operator<<(const absl::string_view str) { 103 StringBuilder& operator<<(char c) = delete; 105 StringBuilder& operator<<(int i) { 110 StringBuilder& operator<<(unsigned i) { 115 StringBuilder& operator<<(long i) { // NOLINT [all …]
|
D | string_builder_unittest.cc | 147 TEST(StringBuilder, Limit) { in TEST() argument 148 StringBuilder sb; in TEST() 155 TEST(StringBuilder, NumbersAndChars) { in TEST() argument 156 StringBuilder sb; in TEST() 163 TEST(StringBuilder, Format) { in TEST() argument 164 StringBuilder sb; in TEST() 170 TEST(StringBuilder, StdString) { in TEST() argument 171 StringBuilder sb; in TEST() 177 TEST(StringBuilder, Release) { in TEST() argument 178 StringBuilder sb; in TEST() [all …]
|
/external/auto/value/src/main/java/com/google/auto/value/processor/ |
D | TypeEncoder.java | 82 StringBuilder sb = new StringBuilder(); in encode() 91 StringBuilder sb = new StringBuilder(); in encodeRaw() 112 StringBuilder sb = new StringBuilder(); in encodeWithAnnotations() 169 StringBuilder sb = new StringBuilder("<"); in formalTypeParametersString() 181 TypeParameterElement typeParameter, StringBuilder sb) { in appendTypeParameterWithBounds() 202 List<? extends AnnotationMirror> annotationMirrors, StringBuilder sb) { in appendAnnotations() 213 extends SimpleTypeVisitor8<StringBuilder, StringBuilder> { 220 StringBuilder visit2(TypeMirror type, StringBuilder sb) { in visit2() 231 protected StringBuilder defaultAction(TypeMirror type, StringBuilder sb) { in defaultAction() 236 public StringBuilder visitArray(ArrayType type, StringBuilder sb) { in visitArray() [all …]
|
D | AnnotationOutput.java | 51 extends SimpleAnnotationValueVisitor8<Void, StringBuilder> { 53 protected Void defaultAction(Object value, StringBuilder sb) { in defaultAction() 59 public Void visitArray(List<? extends AnnotationValue> values, StringBuilder sb) { in visitArray() 72 public Void visitChar(char c, StringBuilder sb) { in visitChar() 78 public Void visitLong(long i, StringBuilder sb) { in visitLong() 84 public Void visitDouble(double d, StringBuilder sb) { in visitDouble() 98 public Void visitFloat(float f, StringBuilder sb) { in visitFloat() 112 public Void visitEnumConstant(VariableElement c, StringBuilder sb) { in visitEnumConstant() 118 public Void visitString(String s, StringBuilder sb) { in visitString() 124 public Void visitType(TypeMirror classConstant, StringBuilder sb) { in visitType() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | SimpleFormatterTest.java | 55 fmt.formatAndAppend(new StringBuilder(), offsets).toString()); in TestWithNoArguments() 63 fmt.formatAndAppend(new StringBuilder(), null, (CharSequence[])null).toString()); in TestWithNoArguments() 67 fmt.formatAndReplace(new StringBuilder(), null, (CharSequence[])null).toString()); in TestWithNoArguments() 121 new StringBuilder(), null, "freddy", "tommy", "frog", "leg"); in TestTooFewArgumentValues() 128 new StringBuilder(), null, "freddy", "tommy", "frog", "leg"); in TestTooFewArgumentValues() 152 new StringBuilder("123456: "), in TestWithArguments() 164 StringBuilder appendTo = new StringBuilder("previous:"); in TestFormatUseAppendToAsArgument() 177 StringBuilder result = new StringBuilder("original"); in TestFormatReplaceNoOptimization() 195 StringBuilder result = new StringBuilder("original"); in TestFormatReplaceNoOptimizationLeadingText() 212 StringBuilder result = new StringBuilder("original"); in TestFormatReplaceOptimization() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | SimpleFormatterTest.java | 58 fmt.formatAndAppend(new StringBuilder(), offsets).toString()); in TestWithNoArguments() 66 fmt.formatAndAppend(new StringBuilder(), null, (CharSequence[])null).toString()); in TestWithNoArguments() 70 fmt.formatAndReplace(new StringBuilder(), null, (CharSequence[])null).toString()); in TestWithNoArguments() 124 new StringBuilder(), null, "freddy", "tommy", "frog", "leg"); in TestTooFewArgumentValues() 131 new StringBuilder(), null, "freddy", "tommy", "frog", "leg"); in TestTooFewArgumentValues() 155 new StringBuilder("123456: "), in TestWithArguments() 167 StringBuilder appendTo = new StringBuilder("previous:"); in TestFormatUseAppendToAsArgument() 180 StringBuilder result = new StringBuilder("original"); in TestFormatReplaceNoOptimization() 198 StringBuilder result = new StringBuilder("original"); in TestFormatReplaceNoOptimizationLeadingText() 215 StringBuilder result = new StringBuilder("original"); in TestFormatReplaceOptimization() [all …]
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
D | StringBuilderExtensions.cs | 35 using StringBuilder = System.Text.StringBuilder; typedef 44 public static void append<T>( this StringBuilder buffer, T value ) in append() 50 public static char charAt( this StringBuilder buffer, int index ) in charAt() 56 public static int length( this StringBuilder buffer ) in length() 62 public static void setCharAt( this StringBuilder buffer, int index, char c ) in setCharAt() 68 public static void setLength( this StringBuilder buffer, int length ) in setLength()
|
/external/icu/libicu/cts_headers/ |
D | double-conversion-double-to-string.h | 180 bool ToShortest(double value, StringBuilder* result_builder) const { 185 bool ToShortestSingle(float value, StringBuilder* result_builder) const { 225 StringBuilder* result_builder) const; 257 StringBuilder* result_builder) const; 295 StringBuilder* result_builder) const; 378 StringBuilder* result_builder, 385 bool HandleSpecialValues(double value, StringBuilder* result_builder) const; 391 StringBuilder* result_builder) const; 397 StringBuilder* result_builder) const;
|
/external/icu/icu4c/source/i18n/ |
D | double-conversion-double-to-string.h | 180 bool ToShortest(double value, StringBuilder* result_builder) const { 185 bool ToShortestSingle(float value, StringBuilder* result_builder) const { 225 StringBuilder* result_builder) const; 257 StringBuilder* result_builder) const; 295 StringBuilder* result_builder) const; 378 StringBuilder* result_builder, 385 bool HandleSpecialValues(double value, StringBuilder* result_builder) const; 391 StringBuilder* result_builder) const; 397 StringBuilder* result_builder) const;
|
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/ |
D | DebugEventSocketProxy.cs | 42 using StringBuilder = System.Text.StringBuilder; typedef 221 StringBuilder buf = new StringBuilder(50); in RecognitionException() 243 StringBuilder buf = new StringBuilder(50); in SemanticPredicate() 253 StringBuilder buf = new StringBuilder(50); in ConsumeNode() 263 StringBuilder buf = new StringBuilder(50); in LT() 270 protected virtual void SerializeNode(StringBuilder buf, object t) { in SerializeNode() 308 StringBuilder buf = new StringBuilder(50); in ErrorNode() 321 StringBuilder buf = new StringBuilder(50); in CreateNode() 359 StringBuilder buf = new StringBuilder(50); in SerializeToken() 373 protected virtual void SerializeText(StringBuilder buf, string text) { in SerializeText()
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/ |
D | DebugEventSocketProxy.cs | 41 using StringBuilder = System.Text.StringBuilder; typedef 255 StringBuilder buf = new StringBuilder( 50 ); in RecognitionException() 280 StringBuilder buf = new StringBuilder( 50 ); in SemanticPredicate() 291 StringBuilder buf = new StringBuilder( 50 ); in ConsumeNode() 302 StringBuilder buf = new StringBuilder( 50 ); in LT() 309 protected virtual void SerializeNode( StringBuilder buf, object t ) in SerializeNode() 351 StringBuilder buf = new StringBuilder( 50 ); in ErrorNode() 365 StringBuilder buf = new StringBuilder( 50 ); in CreateNode() 408 StringBuilder buf = new StringBuilder( 50 ); in SerializeToken() 422 protected virtual void SerializeText( StringBuilder buf, string text ) in SerializeText()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | Normalizer2.java | 227 StringBuilder sb=new StringBuilder(src.length()).append(src, 0, spanLength); in normalize() 231 return normalize(src, new StringBuilder(src.length())).toString(); in normalize() 243 public abstract StringBuilder normalize(CharSequence src, StringBuilder dest); in normalize() 269 public abstract StringBuilder normalizeSecondAndAppend( in normalizeSecondAndAppend() 270 StringBuilder first, CharSequence second); in normalizeSecondAndAppend() 282 public abstract StringBuilder append(StringBuilder first, CharSequence second); in append()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | Normalizer2.java | 217 StringBuilder sb=new StringBuilder(src.length()).append(src, 0, spanLength); in normalize() 221 return normalize(src, new StringBuilder(src.length())).toString(); in normalize() 232 public abstract StringBuilder normalize(CharSequence src, StringBuilder dest); in normalize() 256 public abstract StringBuilder normalizeSecondAndAppend( in normalizeSecondAndAppend() 257 StringBuilder first, CharSequence second); in normalizeSecondAndAppend() 268 public abstract StringBuilder append(StringBuilder first, CharSequence second); in append()
|
/external/guava/android/guava-tests/benchmark/com/google/common/base/ |
D | JoinerBenchmark.java | 82 StringBuilder sb = new StringBuilder(); in joinerInlined() 104 StringBuilder sb = new StringBuilder(); in stringBuilderIsEmpty() 124 StringBuilder sb = new StringBuilder(); in booleanIfFirst() 145 StringBuilder sb = new StringBuilder(); in assignDelimiter() 165 StringBuilder sb = new StringBuilder(); in alwaysAppendThenBackUp()
|
/external/guava/guava-tests/benchmark/com/google/common/base/ |
D | JoinerBenchmark.java | 82 StringBuilder sb = new StringBuilder(); in joinerInlined() 104 StringBuilder sb = new StringBuilder(); in stringBuilderIsEmpty() 124 StringBuilder sb = new StringBuilder(); in booleanIfFirst() 145 StringBuilder sb = new StringBuilder(); in assignDelimiter() 165 StringBuilder sb = new StringBuilder(); in alwaysAppendThenBackUp()
|
/external/libphonenumber/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/ |
D | MappingFileProvider.java | 128 StringBuilder output = new StringBuilder(); in toString() 168 StringBuilder fileName = new StringBuilder(); in getFileName() 178 StringBuilder fullLocale = constructFullLocale(language, script, region); in findBestMatchingLanguageCode() 195 StringBuilder langWithScript = new StringBuilder(language).append('_').append(script); in findBestMatchingLanguageCode() 201 StringBuilder langWithRegion = new StringBuilder(language).append('_').append(region); in findBestMatchingLanguageCode() 219 private StringBuilder constructFullLocale(String language, String script, String region) { in constructFullLocale() 220 StringBuilder fullLocale = new StringBuilder(language); in constructFullLocale() 226 private void appendSubsequentLocalePart(String subsequentLocalePart, StringBuilder fullLocale) { in appendSubsequentLocalePart()
|
/external/libphonenumber/repackaged/internal/prefixmapper/src/com/android/i18n/phonenumbers/prefixmapper/ |
D | MappingFileProvider.java | 130 StringBuilder output = new StringBuilder(); in toString() 170 StringBuilder fileName = new StringBuilder(); in getFileName() 180 StringBuilder fullLocale = constructFullLocale(language, script, region); in findBestMatchingLanguageCode() 197 StringBuilder langWithScript = new StringBuilder(language).append('_').append(script); in findBestMatchingLanguageCode() 203 StringBuilder langWithRegion = new StringBuilder(language).append('_').append(region); in findBestMatchingLanguageCode() 221 private StringBuilder constructFullLocale(String language, String script, String region) { in constructFullLocale() 222 StringBuilder fullLocale = new StringBuilder(language); in constructFullLocale() 228 private void appendSubsequentLocalePart(String subsequentLocalePart, StringBuilder fullLocale) { in appendSubsequentLocalePart()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/ |
D | com_github_javaparser_utils_Utils.txt | 4 Line 61) escapedString.append("\\n") ==> java.lang.StringBuilder.append(java.lang.String) 5 Line 64) escapedString.append("\\r") ==> java.lang.StringBuilder.append(java.lang.String) 6 Line 67) escapedString.append(c) ==> java.lang.StringBuilder.append(char) 7 Line 70) escapedString.toString() ==> java.lang.StringBuilder.toString() 9 Line 79) result.append(buffer, 0, numChars) ==> java.lang.StringBuilder.append(char[], int, int) 10 Line 82) result.toString() ==> java.lang.StringBuilder.toString() 12 Line 91) result.append(buffer, 0, numChars) ==> java.lang.StringBuilder.append(char[], int, int) 13 Line 94) result.toString() ==> java.lang.StringBuilder.toString()
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/ |
D | ParseTree.cs | 37 using StringBuilder = System.Text.StringBuilder; typedef 126 StringBuilder buf = new StringBuilder(); in ToStringWithHiddenTokens() 148 StringBuilder buf = new StringBuilder(); in ToInputString() 153 protected virtual void ToStringLeaves( StringBuilder buf ) in ToStringLeaves()
|