OcrInvokeSetLocale Method |
http://www.emgu.com
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.
Namespace:
Emgu.CV.OCR
Assembly:
Emgu.CV.Platform.NetStandard (in Emgu.CV.Platform.NetStandard.dll) Version: 4.3.0.3890
Syntaxpublic static string SetLocale(
LocaleGuardLocaleCategory category,
string locale = null
)
Public Shared Function SetLocale (
category As LocaleGuardLocaleCategory,
Optional locale As String = Nothing
) As String
public:
static String^ SetLocale(
LocaleGuardLocaleCategory category,
String^ locale = nullptr
)
static member SetLocale :
category : LocaleGuardLocaleCategory *
?locale : string
(* Defaults:
let _locale = defaultArg locale null
*)
-> string
Parameters
- category
- Type: Emgu.CV.OCRLocaleGuardLocaleCategory
Locale category identifier - locale (Optional)
- Type: SystemString
System-specific locale identifier. Can be "" for the user-preferred locale or "C" for the minimal locale
Return Value
Type:
StringString identifying the C locale after applying the changes, if any, or null pointer on failure. A copy of the returned string along with the category used in this call to std::setlocale may be used later in the program to restore the locale back to the state at the end of this call.
See Also