FreeRDP
locale.c File Reference
#include <freerdp/config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winpr/crt.h>
#include <winpr/assert.h>
#include <winpr/environment.h>
#include "liblocale.h"
#include <freerdp/locale/locale.h>

Functions

static BOOL freerdp_get_system_language_and_country_codes (char *language, size_t languageLen, char *country, size_t countryLen)
 
static const SYSTEM_LOCALEfreerdp_detect_system_locale (void)
 
DWORD freerdp_get_system_locale_id (void)
 
static const SYSTEM_LOCALEget_locale_from_str (const char *name)
 
static INT64 get_layout_from_locale (const SYSTEM_LOCALE *locale)
 
const char * freerdp_get_system_locale_name_from_id (DWORD localeId)
 
INT64 freerdp_get_locale_id_from_string (const char *locale)
 
int freerdp_detect_keyboard_layout_from_system_locale (DWORD *keyboardLayoutId)
 
const SYSTEM_LOCALEfreerdp_get_system_locale_list (size_t *count)
 
DWORD freerdp_get_keyboard_default_layout_for_locale (DWORD locale)
 

Variables

static const SYSTEM_LOCALE SYSTEM_LOCALE_TABLE []
 
static const LOCALE_NAME LOCALE_NAME_TABLE []
 
static const LOCALE_KEYBOARD_LAYOUTS LOCALE_KEYBOARD_LAYOUTS_TABLE []
 

Function Documentation

◆ freerdp_detect_keyboard_layout_from_system_locale()

int freerdp_detect_keyboard_layout_from_system_locale ( DWORD *  keyboardLayoutId)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_detect_system_locale()

static const SYSTEM_LOCALE* freerdp_detect_system_locale ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_get_keyboard_default_layout_for_locale()

DWORD freerdp_get_keyboard_default_layout_for_locale ( DWORD  locale)
Here is the caller graph for this function:

◆ freerdp_get_locale_id_from_string()

INT64 freerdp_get_locale_id_from_string ( const char *  locale)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_get_system_language_and_country_codes()

static BOOL freerdp_get_system_language_and_country_codes ( char *  language,
size_t  languageLen,
char *  country,
size_t  countryLen 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_get_system_locale_id()

DWORD freerdp_get_system_locale_id ( void  )
Here is the call graph for this function:

◆ freerdp_get_system_locale_list()

const SYSTEM_LOCALE* freerdp_get_system_locale_list ( size_t *  count)

◆ freerdp_get_system_locale_name_from_id()

const char* freerdp_get_system_locale_name_from_id ( DWORD  localeId)

◆ get_layout_from_locale()

static INT64 get_layout_from_locale ( const SYSTEM_LOCALE locale)
static
Here is the caller graph for this function:

◆ get_locale_from_str()

static const SYSTEM_LOCALE* get_locale_from_str ( const char *  name)
static
Here is the caller graph for this function:

Variable Documentation

◆ LOCALE_KEYBOARD_LAYOUTS_TABLE

const LOCALE_KEYBOARD_LAYOUTS LOCALE_KEYBOARD_LAYOUTS_TABLE[]
static

◆ LOCALE_NAME_TABLE

const LOCALE_NAME LOCALE_NAME_TABLE[]
static

◆ SYSTEM_LOCALE_TABLE

const SYSTEM_LOCALE SYSTEM_LOCALE_TABLE[]
static

FreeRDP: A Remote Desktop Protocol Implementation Microsoft Locales

Copyright 2009-2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2021 Thincast Technologies GmbH Copyright 2021 Martin Fleisz marti.nosp@m.n.fl.nosp@m.eisz@.nosp@m.thin.nosp@m.cast..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.