public static class HumanLanguage.Helper extends Object
| Constructor and Description |
|---|
Helper() |
| Modifier and Type | Method and Description |
|---|---|
static HumanLanguage |
get(Locale locale) |
static HumanLanguage |
get(String localeString) |
static String |
getDefaultFileEncoding(HumanLanguage language) |
static String |
getDefaultUserEmailEncoding(HumanLanguage language)
Return the user email encoding, which differs from the email encoding for
Thai and Korean for reasons I don't understand.
|
static String |
getFileNameServletEncoding(HumanLanguage language,
boolean forWindows)
Method used to make sure that file names are encoded specially for japanese users on AP0
|
static String |
getSystemEmailEncoding(HumanLanguage language) |
static boolean |
hasTurkicCaseFolding(HumanLanguage language) |
static boolean |
isSimplifiedChinese(HumanLanguage language) |
static String |
toFoldedCase(HumanLanguage language,
String input)
Return the value with the "case folded" using the unicode algorithm
for lowercase based on the current user language
|
public static HumanLanguage get(Locale locale)
public static HumanLanguage get(String localeString)
public static boolean isSimplifiedChinese(HumanLanguage language)
public static boolean hasTurkicCaseFolding(HumanLanguage language)
public static String getDefaultFileEncoding(HumanLanguage language)
public static String getFileNameServletEncoding(HumanLanguage language, boolean forWindows)
forWindows - is the file being downloaded on a windows device, where MS932 should be used for japanesepublic static String getDefaultUserEmailEncoding(HumanLanguage language)
public static String getSystemEmailEncoding(HumanLanguage language)
public static String toFoldedCase(HumanLanguage language, String input)
input - the string to be case folded (i.e. lowercased)CaseFolder.toFoldedCase(String, boolean)Copyright (c) 2016-2017, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE.txt file in the repository.