OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:AlphabeticIndex
(Results
1 - 9
of
9
) 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
AlphabeticIndex
* fromPeer(jlong peer) {
29
return reinterpret_cast<
AlphabeticIndex
*>(static_cast<uintptr_t>(peer));
38
AlphabeticIndex
* ai = new
AlphabeticIndex
(icuLocale.locale(), status);
39
if (maybeThrowIcuException(env, "
AlphabeticIndex
", status)) {
50
AlphabeticIndex
* ai = fromPeer(peer);
55
AlphabeticIndex
* ai = fromPeer(peer);
58
maybeThrowIcuException(env, "
AlphabeticIndex
::setMaxLabelCount", status);
62
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
60
delete static_cast<
AlphabeticIndex
::Record *>(obj);
82
inline
AlphabeticIndex
::Bucket *getBucket(const UVector &list, int32_t i) {
83
return static_cast<
AlphabeticIndex
::Bucket *>(list[i]);
86
inline
AlphabeticIndex
::Record *getRecord(const UVector &list, int32_t i) {
87
return static_cast<
AlphabeticIndex
::Record *>(list[i]);
151
const
AlphabeticIndex
::Bucket *bucket = getBucket(*bucketList_, i);
160
const
AlphabeticIndex
::Bucket *bucket = getBucket(*bucketList_, start);
180
AlphabeticIndex
::ImmutableIndex::~ImmutableIndex() {
186
AlphabeticIndex
::ImmutableIndex::getBucketCount() const {
191
AlphabeticIndex
::ImmutableIndex::getBucketIndex
[
all
...]
/external/icu/icu4c/source/test/intltest/
alphaindextst.cpp
32
UnicodeString joinLabelsAndAppend(
AlphabeticIndex
::ImmutableIndex &index, UnicodeString &dest) {
34
const
AlphabeticIndex
::Bucket *bucket;
54
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));
/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
91
AlphabeticIndex
ai = new
AlphabeticIndex
(locales.getPrimaryLocale())
115
* Returns the bucket index for the specified string.
AlphabeticIndex
120
* the bucket indexes returned by
AlphabeticIndex
in order to make room
147
* TODO: ICU 52
AlphabeticIndex
doesn't support Simplified Chinese
164
* Returns the number of buckets in use (one more than
AlphabeticIndex
[
all
...]
/prebuilts/misc/common/icu4j/
icu4j.jar
Completed in 254 milliseconds