OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:AlphabeticIndex
(Results
1 - 12
of
12
) sorted by null
/libcore/luni/src/test/java/libcore/icu/
AlphabeticIndexTest.java
22
private static
AlphabeticIndex
.ImmutableIndex createIndex(Locale locale) {
23
return new
AlphabeticIndex
(locale).addLabels(Locale.US).getImmutableIndex();
26
private static void assertHasLabel(
AlphabeticIndex
.ImmutableIndex ii, String string, String expectedLabel) {
34
AlphabeticIndex
.ImmutableIndex en = createIndex(Locale.ENGLISH);
40
AlphabeticIndex
.ImmutableIndex ja = createIndex(Locale.JAPANESE);
71
AlphabeticIndex
.ImmutableIndex ko = createIndex(Locale.KOREAN);
81
AlphabeticIndex
.ImmutableIndex cs = createIndex(new Locale("cs"));
95
AlphabeticIndex
.ImmutableIndex fr = createIndex(Locale.FRENCH);
102
AlphabeticIndex
.ImmutableIndex da = createIndex(new Locale("da"));
111
AlphabeticIndex
.ImmutableIndex de = createIndex(Locale.GERMAN)
[
all
...]
/external/icu/icu4c/source/i18n/unicode/
alphaindex.h
81
*
AlphabeticIndex
supports the creation of a UI index appropriate for a given language.
109
* The
AlphabeticIndex
class is not intended for public subclassing.
125
*
AlphabeticIndex
index = new
AlphabeticIndex
(desiredLocale, status);
158
* <p>Callers can also use the
AlphabeticIndex
::ImmutableIndex, or the
AlphabeticIndex
itself,
159
* to support sorting on a client that doesn't support
AlphabeticIndex
functionality.
162
* The corresponding
AlphabeticIndex
methods are not thread-safe because
167
* <li>The
AlphabeticIndex
bucket iterator or ImmutableIndex.getBucket(0..getBucketCount-1)
186
class U_I18N_API
AlphabeticIndex
: public UObject
[
all
...]
/libcore/luni/src/main/native/
libcore_icu_AlphabeticIndex.cpp
17
#define LOG_TAG "
AlphabeticIndex
"
28
static icu::
AlphabeticIndex
* fromPeer(jlong peer) {
29
return reinterpret_cast<icu::
AlphabeticIndex
*>(static_cast<uintptr_t>(peer));
38
icu::
AlphabeticIndex
* ai = new icu::
AlphabeticIndex
(icuLocale.locale(), status);
39
if (maybeThrowIcuException(env, "
AlphabeticIndex
", status)) {
50
icu::
AlphabeticIndex
* ai = fromPeer(peer);
55
icu::
AlphabeticIndex
* ai = fromPeer(peer);
58
maybeThrowIcuException(env, "
AlphabeticIndex
::setMaxLabelCount", status);
62
icu::
AlphabeticIndex
* ai = fromPeer(peer)
[
all
...]
/libcore/luni/src/main/java/libcore/icu/
AlphabeticIndex.java
22
* Exposes icu4c's
AlphabeticIndex
.
24
public final class
AlphabeticIndex
{
28
* thread safe snapshot view of an
AlphabeticIndex
at the moment it was
78
* Creates a new
AlphabeticIndex
for the given locale.
80
public
AlphabeticIndex
(Locale locale) {
104
public synchronized
AlphabeticIndex
setMaxLabelCount(int count) {
117
public synchronized
AlphabeticIndex
addLabels(Locale locale) {
126
public synchronized
AlphabeticIndex
addLabelRange(int codePointStart, int codePointEnd) {
155
* Returns an ImmutableIndex created from this
AlphabeticIndex
.
/external/icu/icu4c/source/i18n/
alphaindex.cpp
58
delete static_cast<
AlphabeticIndex
::Record *>(obj);
80
inline
AlphabeticIndex
::Bucket *getBucket(const UVector &list, int32_t i) {
81
return static_cast<
AlphabeticIndex
::Bucket *>(list[i]);
84
inline
AlphabeticIndex
::Record *getRecord(const UVector &list, int32_t i) {
85
return static_cast<
AlphabeticIndex
::Record *>(list[i]);
149
const
AlphabeticIndex
::Bucket *bucket = getBucket(*bucketList_, i);
158
const
AlphabeticIndex
::Bucket *bucket = getBucket(*bucketList_, start);
178
AlphabeticIndex
::ImmutableIndex::~ImmutableIndex() {
184
AlphabeticIndex
::ImmutableIndex::getBucketCount() const {
189
AlphabeticIndex
::ImmutableIndex::getBucketIndex
[
all
...]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
AlphabeticIndexTest.java
26
import com.ibm.icu.text.
AlphabeticIndex
;
27
import com.ibm.icu.text.
AlphabeticIndex
.Bucket;
28
import com.ibm.icu.text.
AlphabeticIndex
.Bucket.LabelType;
29
import com.ibm.icu.text.
AlphabeticIndex
.ImmutableIndex;
30
import com.ibm.icu.text.
AlphabeticIndex
.Record;
47
private static final boolean DEBUG = ICUDebug.enabled("
alphabeticindex
");
219
AlphabeticIndex
<Integer>
alphabeticIndex
= new
AlphabeticIndex
<Integer>(new ULocale(test[0]));
222
alphabeticIndex
.addRecord(probe, 1)
[
all
...]
/external/icu/icu4c/source/test/intltest/
alphaindextst.cpp
31
UnicodeString joinLabelsAndAppend(
AlphabeticIndex
::ImmutableIndex &index, UnicodeString &dest) {
33
const
AlphabeticIndex
::Bucket *bucket;
53
if (exec) logln("TestSuite
AlphabeticIndex
: ");
86
AlphabeticIndex
*index = new
AlphabeticIndex
(Locale::getEnglish(), status);
101
index = new
AlphabeticIndex
(coll, status);
113
index = new
AlphabeticIndex
(Locale::getEnglish(), status);
130
index = new
AlphabeticIndex
(Locale::getEnglish(), status);
132
AlphabeticIndex
&aip = index->addLabels(Locale::getJapanese(), status);
143
index = new
AlphabeticIndex
(Locale::getGerman(), status)
[
all
...]
uobjtest.cpp
489
TESTCLASSID_NONE_CTOR(
AlphabeticIndex
, (Locale::getEnglish(), status));
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
AlphabeticIndex.java
17
import com.ibm.icu.text.
AlphabeticIndex
.Bucket;
18
import com.ibm.icu.text.
AlphabeticIndex
.Bucket.LabelType;
23
*
AlphabeticIndex
supports the creation of a UI index appropriate for a given language.
62
*
AlphabeticIndex
<Integer> index = new
AlphabeticIndex
<Integer>(desiredLocale).addLabels(additionalLocale);
70
* for (
AlphabeticIndex
.Bucket<Integer> bucket : index) {
78
* for (
AlphabeticIndex
.Bucket<Integer> bucket : index) {
81
* for (
AlphabeticIndex
.Record<Integer> item : bucket) {
95
* <p>Callers can also use the {@link
AlphabeticIndex
.ImmutableIndex}, or the
AlphabeticIndex
itself
[
all
...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
ContactLocaleUtils.java
39
import libcore.icu.
AlphabeticIndex
;
40
import libcore.icu.
AlphabeticIndex
.ImmutableIndex;
64
* labels: uses ICU
AlphabeticIndex
for labels and extends by labeling
77
//
AlphabeticIndex
.getBucketLabel() uses a binary search across
92
AlphabeticIndex
ai = new
AlphabeticIndex
(locales.getPrimaryLocale())
116
* Returns the bucket index for the specified string.
AlphabeticIndex
121
* the bucket indexes returned by
AlphabeticIndex
in order to make room
148
* ICU 55
AlphabeticIndex
doesn't support Simplified Chinese
168
* Returns the number of buckets in use (one more than
AlphabeticIndex
[
all
...]
/prebuilts/misc/common/icu4j/
icu4j.jar
/prebuilts/tools/common/m2/repository/com/ibm/icu/icu4j/54.1.1/
icu4j-54.1.1.jar
Completed in 288 milliseconds