Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QtCollator.java
Go to the documentation of this file.
1// Copyright (C) 2026 Volker Krause <vkrause@kde.org>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4package org.qtproject.qt.android;
5
6import android.icu.text.CollationKey;
7import android.icu.text.Collator;
8import java.util.Locale;
9
10class QtCollator
11{
12 static Collator getCollator(String bcp47Name, int strength)
13 {
14 Locale locale = Locale.forLanguageTag(bcp47Name);
15 Collator c = Collator.getInstance(locale);
16 if (strength >= 0) {
17 c.setStrength(strength);
18 }
19 return c;
20 }
21
22 static byte[] getCollationKey(Collator collator, String s)
23 {
24 return collator.getCollationKey(s).toByteArray();
25 }
26}
GLdouble s
[6]
Definition qopenglext.h:235
const GLubyte * c