UDK 3.2.7 C/C++ API Reference

rtl/locale.h

Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /*
00003  * This file is part of the LibreOffice project.
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  *
00009  * This file incorporates work covered by the following license notice:
00010  *
00011  *   Licensed to the Apache Software Foundation (ASF) under one or more
00012  *   contributor license agreements. See the NOTICE file distributed
00013  *   with this work for additional information regarding copyright
00014  *   ownership. The ASF licenses this file to you under the Apache
00015  *   License, Version 2.0 (the "License"); you may not use this file
00016  *   except in compliance with the License. You may obtain a copy of
00017  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
00018  */
00019 
00020 #ifndef _RTL_LOCALE_H_
00021 #define _RTL_LOCALE_H_
00022 
00023 #include "sal/config.h"
00024 
00025 #include "rtl/ustring.h"
00026 #include "sal/saldllapi.h"
00027 
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif
00031 
00032 #ifdef SAL_W32
00033 #   pragma pack(push, 8)
00034 #endif
00035 
00042 typedef struct _rtl_Locale
00043 {
00047     rtl_uString *   Language;
00051     rtl_uString *   Country;
00055     rtl_uString *   Variant;
00059     sal_Int32       HashCode;
00060 } rtl_Locale;
00061 
00062 #if defined( SAL_W32)
00063 #pragma pack(pop)
00064 #endif
00065 
00072 SAL_DLLPUBLIC rtl_Locale * SAL_CALL rtl_locale_register(
00073         const sal_Unicode * language, const sal_Unicode * country, const sal_Unicode * variant );
00074 
00086 SAL_DLLPUBLIC rtl_Locale * SAL_CALL rtl_locale_getDefault();
00087 
00096 SAL_DLLPUBLIC void SAL_CALL rtl_locale_setDefault(
00097         const sal_Unicode * language, const sal_Unicode * country, const sal_Unicode * variant );
00098 
00104 SAL_DLLPUBLIC rtl_uString * SAL_CALL rtl_locale_getLanguage( rtl_Locale * This );
00105 
00111 SAL_DLLPUBLIC rtl_uString * SAL_CALL rtl_locale_getCountry( rtl_Locale * This );
00112 
00117 SAL_DLLPUBLIC rtl_uString * SAL_CALL rtl_locale_getVariant( rtl_Locale * This );
00118 
00122 SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_locale_hashCode( rtl_Locale * This );
00123 
00127 SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_locale_equals( rtl_Locale * This, rtl_Locale * obj  );
00128 
00129 #ifdef __cplusplus
00130 }
00131 #endif
00132 
00133 #endif /* _RTL_LOCALE_H_ */
00134 
00135 
00136 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines