public class LibCLocale
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
LC_ALL
Selects the entire C locale.
|
static int |
LC_COLLATE
Selects the collation category of the C locale.
|
static int |
LC_CTYPE
Selects the character classification category of the C locale.
|
static int |
LC_MONETARY
Selects the monetary formatting category of the C locale.
|
static int |
LC_NUMERIC
Selects the numeric formatting category of the C locale.
|
static int |
LC_TIME
Selects the time formatting category of the C locale.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
nsetlocale(int category,
long locale)
Unsafe version of:
setlocale(int, java.nio.ByteBuffer) |
static java.lang.String |
setlocale(int category,
java.nio.ByteBuffer locale)
Gets and sets the current C locale.
|
static java.lang.String |
setlocale(int category,
java.lang.CharSequence locale)
Gets and sets the current C locale.
|
public static final int LC_ALL
public static final int LC_COLLATE
public static final int LC_CTYPE
public static final int LC_MONETARY
public static final int LC_NUMERIC
public static final int LC_TIME
public static long nsetlocale(int category,
long locale)
setlocale(int, java.nio.ByteBuffer)@Nullable
public static java.lang.String setlocale(int category,
java.nio.ByteBuffer locale)
The setlocale function installs the specified system locale or its portion as the new C locale. The modifications remain in effect and
influences the execution of all locale-sensitive C library functions until the next call to setlocale. If locale is a null pointer,
setlocale queries the current C locale without modifying it.
category - the locale category identifier, may by null. One of:LC_ALL | LC_COLLATE | LC_CTYPE | LC_MONETARY | LC_NUMERIC | LC_TIME |
locale - system-specific locale identifier. Can be "" for the user-preferred locale or "C" for the minimal locale.A copy of the returned string along with the category used in this call to setlocale may be used later in the program to restore the locale
back to the state at the end of this call.
@Nullable
public static java.lang.String setlocale(int category,
java.lang.CharSequence locale)
The setlocale function installs the specified system locale or its portion as the new C locale. The modifications remain in effect and
influences the execution of all locale-sensitive C library functions until the next call to setlocale. If locale is a null pointer,
setlocale queries the current C locale without modifying it.
category - the locale category identifier, may by null. One of:LC_ALL | LC_COLLATE | LC_CTYPE | LC_MONETARY | LC_NUMERIC | LC_TIME |
locale - system-specific locale identifier. Can be "" for the user-preferred locale or "C" for the minimal locale.A copy of the returned string along with the category used in this call to setlocale may be used later in the program to restore the locale
back to the state at the end of this call.
Copyright LWJGL. All Rights Reserved. License terms.