Home
last modified time | relevance | path

Searched +full:string +full:- +full:length (Results 1 – 25 of 2016) sorted by relevance

12345678910>>...81

/aosp_15_r20/frameworks/opt/chips/tests/src/com/android/ex/chips/
DChipsTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
113 public int length() { in length() method in ChipsTest.MockRecipientEditTextView
114 return mEditable != null ? mEditable.length() : 0; in length()
118 public String toString() { in toString()
150 String testAddress = view.createAddressText(entry); in testCreateDisplayText()
151 String testDisplay = view.createChipDisplayText(entry); in testCreateDisplayText()
185 String first = (String) mTokenizer.terminateToken("FIRST"); in testSanitizeBetween()
186 String second = (String) mTokenizer.terminateToken("SECOND"); in testSanitizeBetween()
187 String extra = "EXTRA"; in testSanitizeBetween()
191 int firstEnd = firstStart + first.trim().length(); in testSanitizeBetween()
[all …]
/aosp_15_r20/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/text/
H A DStrBuilder.java9 * 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 …]
/aosp_15_r20/cts/tests/tests/text/src/android/text/cts/
H A DTextUtilsTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
83 private String mEllipsis;
97 mStart = -1; in resetRange()
98 mEnd = -1; in resetRange()
103 * @return the string of ellipsis.
105 private static String getEllipsis() { in getEllipsis()
106 String text = "xxxxx"; in getEllipsis()
109 String re = TextUtils.ellipsize(text, p, width, TruncateAt.START).toString(); in getEllipsis()
118 for (int i = 0; i < s.length(); i++) { in countChars()
135 final String separator = ", "; in testListEllipsize()
[all …]
/aosp_15_r20/external/icu/libicu/cts_headers/unicode/
H A Dunistr.h5 * Copyright (C) 1998-2016, International Business Machines
28 * \brief C++ API: Unicode String
48 * @return Length of sequence.
64 * Internal string case mapping function type.
89 * which constructs a Unicode string from an invariant-character char * string.
92 * therefore recommended over ones taking a charset name string
93 * (where the empty string "" indicates invariant-character conversion).
100 * Unicode String literals in C++.
103 * Prior to the availability of C++11 and u"unicode string literals",
111 * The string parameter must be a C string literal.
[all …]
/aosp_15_r20/external/icu/icu4c/source/common/unicode/
H A Dunistr.h5 * Copyright (C) 1998-2016, International Business Machines
28 * \brief C++ API: Unicode String
48 * @return Length of sequence.
64 * Internal string case mapping function type.
89 * which constructs a Unicode string from an invariant-character char * string.
92 * therefore recommended over ones taking a charset name string
93 * (where the empty string "" indicates invariant-character conversion).
100 * Unicode String literals in C++.
103 * Prior to the availability of C++11 and u"unicode string literals",
111 * The string parameter must be a C string literal.
[all …]
/aosp_15_r20/external/cronet/third_party/icu/source/common/unicode/
H A Dunistr.h5 * Copyright (C) 1998-2016, International Business Machines
28 * \brief C++ API: Unicode String
48 * @return Length of sequence.
64 * Internal string case mapping function type.
89 * which constructs a Unicode string from an invariant-character char * string.
92 * therefore recommended over ones taking a charset name string
93 * (where the empty string "" indicates invariant-character conversion).
100 * Unicode String literals in C++.
103 * Prior to the availability of C++11 and u"unicode string literals",
111 * The string parameter must be a C string literal.
[all …]
/aosp_15_r20/out/soong/.intermediates/libcore/core_oj_api_files/gen/gensrcs/libcore/ojluni/src/main/java/java/lang/
DString.java20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
59 * The {@code String} class represents character strings. All
60 * string literals in Java programs, such as {@code "abc"}, are
64 * are created. String buffers support mutable strings.
65 * Because String objects are immutable they can be shared. For example:
67 * String str = "abc";
72 * String str = new String(data);
77 * String cde = "cde";
79 * String c = "abc".substring(2,3);
80 * String d = cde.substring(1, 2);
[all …]
/aosp_15_r20/out/soong/.intermediates/libcore/core_oj_api_files/gen/4/libcore/ojluni/src/main/java/java/lang/
DString.java20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
59 * The {@code String} class represents character strings. All
60 * string literals in Java programs, such as {@code "abc"}, are
64 * are created. String buffers support mutable strings.
65 * Because String objects are immutable they can be shared. For example:
67 * String str = "abc";
72 * String str = new String(data);
77 * String cde = "cde";
79 * String c = "abc".substring(2,3);
80 * String d = cde.substring(1, 2);
[all …]
/aosp_15_r20/libcore/ojluni/src/main/java/java/lang/
H A DString.java20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
59 * The {@code String} class represents character strings. All
60 * string literals in Java programs, such as {@code "abc"}, are
64 * are created. String buffers support mutable strings.
65 * Because String objects are immutable they can be shared. For example:
67 * String str = "abc";
72 * String str = new String(data);
77 * String cde = "cde";
79 * String c = "abc".substring(2,3);
80 * String d = cde.substring(1, 2);
[all …]
/aosp_15_r20/prebuilts/runtime/mainline/i18n/test-exports/linux_bionic/include/external/icu/icu4c/source/common/unicode/
H A Dunistr.h5 * Copyright (C) 1998-2016, International Business Machines
28 * \brief C++ API: Unicode String
63 * Internal string case mapping function type.
88 * which constructs a Unicode string from an invariant-character char * string.
91 * therefore recommended over ones taking a charset name string
92 * (where the empty string "" indicates invariant-character conversion).
99 * Unicode String literals in C++.
102 * Prior to the availability of C++11 and u"unicode string literals",
110 * The string parameter must be a C string literal.
111 * The length of the string, not including the terminating
[all …]
/aosp_15_r20/prebuilts/runtime/mainline/i18n/test-exports/android/include/external/icu/icu4c/source/common/unicode/
H A Dunistr.h5 * Copyright (C) 1998-2016, International Business Machines
28 * \brief C++ API: Unicode String
63 * Internal string case mapping function type.
88 * which constructs a Unicode string from an invariant-character char * string.
91 * therefore recommended over ones taking a charset name string
92 * (where the empty string "" indicates invariant-character conversion).
99 * Unicode String literals in C++.
102 * Prior to the availability of C++11 and u"unicode string literals",
110 * The string parameter must be a C string literal.
111 * The length of the string, not including the terminating
[all …]
/aosp_15_r20/prebuilts/runtime/mainline/i18n/sdk/common_os/include/external/icu/icu4c/source/common/unicode/
H A Dunistr.h5 * Copyright (C) 1998-2016, International Business Machines
28 * \brief C++ API: Unicode String
63 * Internal string case mapping function type.
88 * which constructs a Unicode string from an invariant-character char * string.
91 * therefore recommended over ones taking a charset name string
92 * (where the empty string "" indicates invariant-character conversion).
99 * Unicode String literals in C++.
102 * Prior to the availability of C++11 and u"unicode string literals",
110 * The string parameter must be a C string literal.
111 * The length of the string, not including the terminating
[all …]
/aosp_15_r20/prebuilts/runtime/mainline/i18n/test-exports/linux_glibc/include/external/icu/icu4c/source/common/unicode/
H A Dunistr.h5 * Copyright (C) 1998-2016, International Business Machines
28 * \brief C++ API: Unicode String
63 * Internal string case mapping function type.
88 * which constructs a Unicode string from an invariant-character char * string.
91 * therefore recommended over ones taking a charset name string
92 * (where the empty string "" indicates invariant-character conversion).
99 * Unicode String literals in C++.
102 * Prior to the availability of C++11 and u"unicode string literals",
110 * The string parameter must be a C string literal.
111 * The length of the string, not including the terminating
[all …]
/aosp_15_r20/external/icu/icu4c/source/common/
H A Dunisetspan.cpp6 * 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 …]
/aosp_15_r20/external/cronet/third_party/icu/source/common/
H A Dunisetspan.cpp6 * 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 …]
/aosp_15_r20/external/pigweed/pw_tokenizer/pw_tokenizer_private/
H A Dgenerated_hash_test_cases.h7 // https://www.apache.org/licenses/LICENSE-2.0
15 // AUTOGENERATED - DO NOT EDIT
33 std::string_view string; member
36 uint32_t macro_calculated_hash; // clang-format off
40 std::string_view("", 0u), // NOLINT(bugprone-string-constructor)
41 80u, // fixed hash length
42 UINT32_C(0), // Python-calculated hash
43 PW_TOKENIZER_65599_FIXED_LENGTH_80_HASH(""), // macro-calculated hash
46 std::string_view("", 0u), // NOLINT(bugprone-string-constructor)
47 96u, // fixed hash length
[all …]
/aosp_15_r20/external/icu/android_icu4j/src/main/java/android/icu/impl/
H A DUnicodeSetStringSpan.java7 * 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 …]
H A DUtility.java6 * Copyright (C) 1996-2015, International Business Machines Corporation and *
41 return (source.length == targ.length in arrayEquals()
42 && arrayRegionMatches(source, 0, targ, 0, source.length)); in arrayEquals()
53 return (source.length == targ.length in arrayEquals()
54 && arrayRegionMatches(source, 0, targ, 0, source.length)); in arrayEquals()
65 return (source.length == targ.length in arrayEquals()
66 && arrayRegionMatches(source, 0, targ, 0, source.length)); in arrayEquals()
72 return (source.length == targ.length in arrayEquals()
73 && arrayRegionMatches(source, 0, targ, 0, source.length)); in arrayEquals()
98 * @param len the length to compare.
[all …]
/aosp_15_r20/external/icu/icu4j/main/core/src/main/java/com/ibm/icu/impl/
H A DUnicodeSetStringSpan.java6 * 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 …]
H A DUtility.java5 * Copyright (C) 1996-2015, International Business Machines Corporation and *
37 return (source.length == targ.length in arrayEquals()
38 && arrayRegionMatches(source, 0, targ, 0, source.length)); in arrayEquals()
49 return (source.length == targ.length in arrayEquals()
50 && arrayRegionMatches(source, 0, targ, 0, source.length)); in arrayEquals()
61 return (source.length == targ.length in arrayEquals()
62 && arrayRegionMatches(source, 0, targ, 0, source.length)); in arrayEquals()
68 return (source.length == targ.length in arrayEquals()
69 && arrayRegionMatches(source, 0, targ, 0, source.length)); in arrayEquals()
94 * @param len the length to compare.
[all …]
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/tests/suites/
H A Dtest_suite_asn1parse.data1 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 …]
/aosp_15_r20/external/mbedtls/tests/suites/
H A Dtest_suite_asn1parse.data1 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 …]
/aosp_15_r20/out/soong/ndk/sysroot/usr/include/unicode/
Dutf8.h6 * 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 …]
/aosp_15_r20/external/icu/libicu/ndk_headers/unicode/
H A Dutf8.h6 * 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 …]
/aosp_15_r20/prebuilts/runtime/mainline/i18n/sdk/common_os/include/external/icu/libicu/ndk_headers/unicode/
H A Dutf8.h6 * 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 …]

12345678910>>...81