| /external/mbedtls/tests/suites/ |
| D | test_suite_asn1parse.data | 1 Empty length 4 Incomplete length 7 Prefixes of OCTET STRING, length=0 10 Prefixes of OCTET STRING, length=0 (0 length bytes) 13 Prefixes of OCTET STRING, length=1 16 Prefixes of OCTET STRING, length=2 19 Prefixes of BOOLEAN, length=0 22 Prefixes of BOOLEAN, length=1 25 Prefixes of BOOLEAN, length=2 28 Prefixes of INTEGER, length=1 [all …]
|
| /external/openthread/third_party/mbedtls/repo/tests/suites/ |
| D | test_suite_asn1parse.data | 1 Empty length 4 Incomplete length 7 Prefixes of OCTET STRING, length=0 10 Prefixes of OCTET STRING, length=0 (0 length bytes) 13 Prefixes of OCTET STRING, length=1 16 Prefixes of OCTET STRING, length=2 19 Prefixes of BOOLEAN, length=0 22 Prefixes of BOOLEAN, length=1 25 Prefixes of BOOLEAN, length=2 28 Prefixes of INTEGER, length=1 [all …]
|
| /external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/ui/src/test/java/com/google/android/exoplayer2/ui/ |
| D | SpannedToHtmlConverterTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 56 SpannableString spanned = new SpannableString("String with colored section"); in convert_supportsForegroundColorSpan() 59 "String with ".length(), in convert_supportsForegroundColorSpan() 60 "String with colored".length(), in convert_supportsForegroundColorSpan() 68 .isEqualTo("String with <span style='color:rgba(64,32,16,0.200);'>colored</span> section"); in convert_supportsForegroundColorSpan() 73 SpannableString spanned = new SpannableString("String with highlighted section"); in convert_supportsBackgroundColorSpan() 77 "String with ".length(), in convert_supportsBackgroundColorSpan() 78 "String with highlighted".length(), in convert_supportsBackgroundColorSpan() 87 .containsExactly(".bg_859840528,.bg_859840528 *", "background-color:rgba(64,32,16,0.200);"); in convert_supportsBackgroundColorSpan() 89 .isEqualTo("String with <span class='bg_859840528'>highlighted</span>" + " section"); in convert_supportsBackgroundColorSpan() [all …]
|
| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/ui/src/test/java/com/google/android/exoplayer2/ui/ |
| D | SpannedToHtmlConverterTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 56 SpannableString spanned = new SpannableString("String with colored section"); in convert_supportsForegroundColorSpan() 59 "String with ".length(), in convert_supportsForegroundColorSpan() 60 "String with colored".length(), in convert_supportsForegroundColorSpan() 68 .isEqualTo("String with <span style='color:rgba(64,32,16,0.200);'>colored</span> section"); in convert_supportsForegroundColorSpan() 73 SpannableString spanned = new SpannableString("String with highlighted section"); in convert_supportsBackgroundColorSpan() 77 "String with ".length(), in convert_supportsBackgroundColorSpan() 78 "String with highlighted".length(), in convert_supportsBackgroundColorSpan() 87 .containsExactly(".bg_859840528,.bg_859840528 *", "background-color:rgba(64,32,16,0.200);"); in convert_supportsBackgroundColorSpan() 89 .isEqualTo("String with <span class='bg_859840528'>highlighted</span>" + " section"); in convert_supportsBackgroundColorSpan() [all …]
|
| /external/robolectric/resources/src/main/java/org/robolectric/res/android/ |
| D | ResourceString.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 30 /** Provides utilities to decode/encode a String packed in an arsc resource file. */ 57 * Given a buffer and an offset into the buffer, returns a String. The {@code offset} is the 58 * 0-based byte offset from the start of the buffer where the string resides. This should be the 59 * location in memory where the string's character count, followed by its byte count, and then 60 * followed by the actual string is located. 62 * <p>Here's an example UTF-8-encoded string of ab©: 69 * @param buffer The buffer containing the string to decode. 70 * @param offset Offset into the buffer where the string resides. 72 * @return The decoded string. [all …]
|
| /external/cronet/net/server/ |
| D | web_socket_encoder_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 29 WebSocketEncoder::CreateServer("permessage-deflate", ¶ms); in TEST() 32 EXPECT_TRUE(server->deflate_enabled()); in TEST() 33 EXPECT_EQ("permessage-deflate", params.AsExtension().ToString()); in TEST() 40 "permessage-deflate; server_no_context_takeover", ¶ms); in TEST() 42 EXPECT_TRUE(server->deflate_enabled()); in TEST() 43 EXPECT_EQ("permessage-deflate; server_no_context_takeover", in TEST() 50 "permessage-deflate; server_no_context_takeover," in TEST() 51 "permessage-deflate; server_max_window_bits=15", in TEST() 55 EXPECT_TRUE(server->deflate_enabled()); in TEST() [all …]
|
| /external/apache-commons-lang/src/main/java/org/apache/commons/lang3/ |
| D | RandomStringUtils.java | 9 * http://www.apache.org/licenses/LICENSE-2.0 23 * Generates random {@link String}s. 30 …* <a href="https://commons.apache.org/proper/commons-text/javadocs/api-release/org/apache/commons/… 34 …* <a href="https://commons.apache.org/proper/commons-rng/">Commons RNG</a> dedicated to pseudo-ran… 41 * High and low surrogates are correctly dealt with - that is if a 58 * Creates a random string whose length is the number of characters 63 * @param count the length of random string to create 64 * @return the random string 66 public static String random(final int count) { in random() 71 * Creates a random string whose length is the number of characters [all …]
|
| /external/llvm/include/llvm/ADT/ |
| D | StringRef.h | 1 //===--- StringRef.h - Constant String Reference Wrapper --------*- C++ -*-===// 8 //===----------------------------------------------------------------------===// 19 #include <string> 35 /// StringRef - Represent a constant reference to a string, i.e. a character 36 /// array and a length, which need not be null terminated. 38 /// This class does not own the string data, it is expected to be used in 50 /// The start of the string, in an external buffer. 53 /// The length of the string. 54 size_t Length; variable 59 static int compareMemory(const char *Lhs, const char *Rhs, size_t Length) { in compareMemory() argument [all …]
|
| /external/apache-commons-lang/src/main/java/org/apache/commons/lang3/text/ |
| D | StrBuilder.java | 9 * http://www.apache.org/licenses/LICENSE-2.0 34 * Builds a string from constituent parts providing a more flexible and powerful API 45 * <li>appendWithSeparators - adds an array of values, with a separator</li> 46 * <li>appendPadding - adds a length padding characters</li> 47 * <li>appendFixedLength - adds a fixed width field to the builder</li> 48 * <li>toCharArray/getChars - simpler ways to get a range of the character array</li> 49 * <li>delete - delete char or string</li> 50 * <li>replace - search and replace for a char or string</li> 51 * <li>leftString/rightString/midString - substring without exceptions</li> 52 * <li>contains - whether the builder contains a char or string</li> [all …]
|
| /external/icu/libicu/ndk_headers/unicode/ |
| D | utf8.h | 6 * Copyright (C) 1999-2015, International Business Machines 11 * encoding: UTF-8 23 * \brief C API: 8-bit Unicode handling macros 25 * This file defines macros to deal with 8-bit Unicode (UTF-8) code units (bytes) and strings. 28 * (https://unicode-org.github.io/icu/userguide/strings). 32 * Compound statements (curly braces {}) must be used for if-else-while... 45 /* internal definitions ----------------------------------------------------- */ 48 * Counts the trail bytes for a UTF-8 lead byte. 55 * @param leadByte The first byte of a UTF-8 sequence. Must be 0..0xff. 63 * Counts the trail bytes for a UTF-8 lead byte of a valid UTF-8 sequence. [all …]
|
| /external/cronet/third_party/libc++/src/benchmarks/ |
| D | string.bench.cpp | 15 std::string s1(state.range(0), '-'); in BM_StringFindNoMatch() 16 std::string s2(8, '*'); in BM_StringFindNoMatch() 20 BENCHMARK(BM_StringFindNoMatch)->Range(10, MAX_STRING_LEN); 22 // Benchmark when the string matches first time. 24 std::string s1(MAX_STRING_LEN, '-'); in BM_StringFindAllMatch() 25 std::string s2(state.range(0), '-'); in BM_StringFindAllMatch() 29 BENCHMARK(BM_StringFindAllMatch)->Range(1, MAX_STRING_LEN); 31 // Benchmark when the string matches somewhere in the end. 33 std::string s1(MAX_STRING_LEN / 2, '*'); in BM_StringFindMatch1() 34 s1 += std::string(state.range(0), '-'); in BM_StringFindMatch1() [all …]
|
| /external/junit/src/main/java/org/junit/ |
| D | ComparisonFailure.java | 4 …* Thrown when an {@link org.junit.Assert#assertEquals(Object, Object) assertEquals(String, String)… 14 …* The maximum length for expected and actual strings. If it is exceeded, the strings should be sho… 24 * See https://github.com/junit-team/junit4/issues/976 26 private String fExpected; 27 private String fActual; 33 * @param expected the expected string value 34 * @param actual the actual string value 36 public ComparisonFailure(String message, String expected, String actual) { in ComparisonFailure() 48 public String getMessage() { in getMessage() 53 * Returns the actual string value [all …]
|
| /external/icu/android_icu4j/src/main/java/android/icu/impl/ |
| D | UnicodeSetStringSpan.java | 7 * Copyright (C) 2009-2015, International Business Machines 51 * All code points in the string are contained in the parent set. 55 static final short LONG_SPAN = ALL_CP_CONTAINED - 1; 67 private ArrayList<String> strings; 69 /** The lengths of span(), spanBack() etc. for each string. */ 88 … public UnicodeSetStringSpan(final UnicodeSet set, final ArrayList<String> setStrings, int which) { in UnicodeSetStringSpan() 91 // as a NavigableSet<String>, rather than as an ArrayList copy of the set of strings. in UnicodeSetStringSpan() 106 // If any string is relevant, then all strings need to be used for in UnicodeSetStringSpan() 109 // and do not store UTF-8 strings if !thisRelevant and CONTAINED. in UnicodeSetStringSpan() 110 … // (Only store irrelevant UTF-8 strings for LONGEST_MATCH where they are relevant after all.) in UnicodeSetStringSpan() [all …]
|
| D | UResource.java | 6 * Copyright (C) 2015-2016, International Business Machines Corporation and 26 * Represents a resource bundle item's key string. 28 * Mutable, not thread-safe. 33 // Stores a reference to the resource bundle key string bytes array, 34 // with an offset of the key, to avoid creating a String object 36 // Alternatively, we could try to always just get the key String object, 40 private int length; field in UResource.Key 41 private String s; 44 * Constructs an empty resource key string object. 51 * Constructs a resource key object equal to the given string. [all …]
|
| /external/icu/icu4j/main/core/src/main/java/com/ibm/icu/impl/ |
| D | UnicodeSetStringSpan.java | 6 * Copyright (C) 2009-2015, International Business Machines 47 * All code points in the string are contained in the parent set. 51 static final short LONG_SPAN = ALL_CP_CONTAINED - 1; 63 private ArrayList<String> strings; 65 /** The lengths of span(), spanBack() etc. for each string. */ 84 … public UnicodeSetStringSpan(final UnicodeSet set, final ArrayList<String> setStrings, int which) { in UnicodeSetStringSpan() 87 // as a NavigableSet<String>, rather than as an ArrayList copy of the set of strings. in UnicodeSetStringSpan() 102 // If any string is relevant, then all strings need to be used for in UnicodeSetStringSpan() 105 // and do not store UTF-8 strings if !thisRelevant and CONTAINED. in UnicodeSetStringSpan() 106 … // (Only store irrelevant UTF-8 strings for LONGEST_MATCH where they are relevant after all.) in UnicodeSetStringSpan() [all …]
|
| D | UResource.java | 5 * Copyright (C) 2015-2016, International Business Machines Corporation and 24 * Represents a resource bundle item's key string. 26 * Mutable, not thread-safe. 30 // Stores a reference to the resource bundle key string bytes array, 31 // with an offset of the key, to avoid creating a String object 33 // Alternatively, we could try to always just get the key String object, 37 private int length; field in UResource.Key 38 private String s; 41 * Constructs an empty resource key string object. 48 * Constructs a resource key object equal to the given string. [all …]
|
| D | FormattedStringBuilder.java | 19 * <li>String operations are fast-pathed to code point operations when possible. 50 int length; field in FormattedStringBuilder 66 length = 0; in FormattedStringBuilder() 74 chars = Arrays.copyOf(source.chars, source.chars.length); in copyFrom() 75 fields = Arrays.copyOf(source.fields, source.fields.length); in copyFrom() 77 length = source.length; in copyFrom() 81 public int length() { in length() method in FormattedStringBuilder 82 return length; in length() 86 return Character.codePointCount(this, 0, length()); in codePointCount() 92 assert index < length; in charAt() [all …]
|
| /external/guava/guava/src/com/google/common/base/ |
| D | Strings.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 30 * Static utility methods pertaining to {@code String} or {@code CharSequence} instances. 41 * Returns the given string if it is non-null; the empty string otherwise. 43 * @param string the string to test and possibly return 44 * @return {@code string} itself if it is non-null; {@code ""} if it is null 46 public static String nullToEmpty(@CheckForNull String string) { in nullToEmpty() argument 47 return Platform.nullToEmpty(string); in nullToEmpty() 51 * Returns the given string if it is nonempty; {@code null} otherwise. 53 * @param string the string to test and possibly return 54 * @return {@code string} itself if it is nonempty; {@code null} if it is empty or null [all …]
|
| /external/guava/android/guava/src/com/google/common/base/ |
| D | Strings.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 28 * Static utility methods pertaining to {@code String} or {@code CharSequence} instances. 39 * Returns the given string if it is non-null; the empty string otherwise. 41 * @param string the string to test and possibly return 42 * @return {@code string} itself if it is non-null; {@code ""} if it is null 44 public static String nullToEmpty(@CheckForNull String string) { in nullToEmpty() argument 45 return Platform.nullToEmpty(string); in nullToEmpty() 49 * Returns the given string if it is nonempty; {@code null} otherwise. 51 * @param string the string to test and possibly return 52 * @return {@code string} itself if it is nonempty; {@code null} if it is empty or null [all …]
|
| /external/cronet/third_party/icu/source/common/ |
| D | unisetspan.cpp | 6 * Copyright (C) 2007-2012, International Business Machines 11 * encoding: UTF-8 32 * a code point or a string. 46 * max string length and U16_LENGTH/U8_LENGTH to account for 57 class OffsetList { // Only ever stack-allocated, does not need to inherit UMemory. 59 OffsetList() : list(staticList), capacity(0), length(0), start(0) {} in OffsetList() 83 start=length=0; in clear() 87 return (UBool)(length==0); in isEmpty() 98 i-=capacity; in shift() 102 --length; in shift() [all …]
|
| /external/icu/icu4c/source/common/ |
| D | unisetspan.cpp | 6 * Copyright (C) 2007-2012, International Business Machines 11 * encoding: UTF-8 32 * a code point or a string. 46 * max string length and U16_LENGTH/U8_LENGTH to account for 57 class OffsetList { // Only ever stack-allocated, does not need to inherit UMemory. 59 OffsetList() : list(staticList), capacity(0), length(0), start(0) {} in OffsetList() 83 start=length=0; in clear() 87 return (UBool)(length==0); in isEmpty() 98 i-=capacity; in shift() 102 --length; in shift() [all …]
|
| /external/icu/libandroidicu/include/unicode/ |
| D | utf8.h | 6 * Copyright (C) 1999-2015, International Business Machines 11 * encoding: UTF-8 21 * \brief C API: 8-bit Unicode handling macros 23 * This file defines macros to deal with 8-bit Unicode (UTF-8) code units (bytes) and strings. 26 * (https://unicode-org.github.io/icu/userguide/strings). 30 * Compound statements (curly braces {}) must be used for if-else-while... 43 /* internal definitions ----------------------------------------------------- */ 46 * Counts the trail bytes for a UTF-8 lead byte. 53 * @param leadByte The first byte of a UTF-8 sequence. Must be 0..0xff. 61 * Counts the trail bytes for a UTF-8 lead byte of a valid UTF-8 sequence. [all …]
|
| /external/icu/libicu/cts_headers/unicode/ |
| D | utf8.h | 6 * Copyright (C) 1999-2015, International Business Machines 11 * encoding: UTF-8 21 * \brief C API: 8-bit Unicode handling macros 23 * This file defines macros to deal with 8-bit Unicode (UTF-8) code units (bytes) and strings. 26 * (https://unicode-org.github.io/icu/userguide/strings). 30 * Compound statements (curly braces {}) must be used for if-else-while... 43 /* internal definitions ----------------------------------------------------- */ 46 * Counts the trail bytes for a UTF-8 lead byte. 53 * @param leadByte The first byte of a UTF-8 sequence. Must be 0..0xff. 61 * Counts the trail bytes for a UTF-8 lead byte of a valid UTF-8 sequence. [all …]
|
| /external/cronet/third_party/icu/source/common/unicode/ |
| D | utf8.h | 6 * Copyright (C) 1999-2015, International Business Machines 11 * encoding: UTF-8 21 * \brief C API: 8-bit Unicode handling macros 23 * This file defines macros to deal with 8-bit Unicode (UTF-8) code units (bytes) and strings. 26 * (https://unicode-org.github.io/icu/userguide/strings). 30 * Compound statements (curly braces {}) must be used for if-else-while... 43 /* internal definitions ----------------------------------------------------- */ 46 * Counts the trail bytes for a UTF-8 lead byte. 53 * @param leadByte The first byte of a UTF-8 sequence. Must be 0..0xff. 61 * Counts the trail bytes for a UTF-8 lead byte of a valid UTF-8 sequence. [all …]
|
| /external/icu/icu4c/source/common/unicode/ |
| D | utf8.h | 6 * Copyright (C) 1999-2015, International Business Machines 11 * encoding: UTF-8 21 * \brief C API: 8-bit Unicode handling macros 23 * This file defines macros to deal with 8-bit Unicode (UTF-8) code units (bytes) and strings. 26 * (https://unicode-org.github.io/icu/userguide/strings). 30 * Compound statements (curly braces {}) must be used for if-else-while... 43 /* internal definitions ----------------------------------------------------- */ 46 * Counts the trail bytes for a UTF-8 lead byte. 53 * @param leadByte The first byte of a UTF-8 sequence. Must be 0..0xff. 61 * Counts the trail bytes for a UTF-8 lead byte of a valid UTF-8 sequence. [all …]
|