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  *
00004  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
00005  *
00006  * Copyright 2000, 2010 Oracle and/or its affiliates.
00007  *
00008  * OpenOffice.org - a multi-platform office productivity suite
00009  *
00010  * This file is part of OpenOffice.org.
00011  *
00012  * OpenOffice.org is free software: you can redistribute it and/or modify
00013  * it under the terms of the GNU Lesser General Public License version 3
00014  * only, as published by the Free Software Foundation.
00015  *
00016  * OpenOffice.org is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU Lesser General Public License version 3 for more details
00020  * (a copy is included in the LICENSE file that accompanied this code).
00021  *
00022  * You should have received a copy of the GNU Lesser General Public License
00023  * version 3 along with OpenOffice.org.  If not, see
00024  * <http://www.openoffice.org/license.html>
00025  * for a copy of the LGPLv3 License.
00026  *
00027  ************************************************************************/
00028 
00029 #ifndef _RTL_LOCALE_H_
00030 #define _RTL_LOCALE_H_
00031 
00032 #include <rtl/ustring.h>
00033 
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037 
00038 #ifdef SAL_W32
00039 #   pragma pack(push, 8)
00040 #endif
00041 
00048 typedef struct _rtl_Locale
00049 {
00053     rtl_uString *   Language;
00057     rtl_uString *   Country;
00061     rtl_uString *   Variant;
00065     sal_Int32       HashCode;
00066 } rtl_Locale;
00067 
00068 #if defined( SAL_W32)
00069 #pragma pack(pop)
00070 #endif
00071 
00078 SAL_DLLPUBLIC rtl_Locale * SAL_CALL rtl_locale_register(
00079         const sal_Unicode * language, const sal_Unicode * country, const sal_Unicode * variant );
00080 
00092 SAL_DLLPUBLIC rtl_Locale * SAL_CALL rtl_locale_getDefault();
00093 
00102 SAL_DLLPUBLIC void SAL_CALL rtl_locale_setDefault(
00103         const sal_Unicode * language, const sal_Unicode * country, const sal_Unicode * variant );
00104 
00110 SAL_DLLPUBLIC rtl_uString * SAL_CALL rtl_locale_getLanguage( rtl_Locale * This );
00111 
00117 SAL_DLLPUBLIC rtl_uString * SAL_CALL rtl_locale_getCountry( rtl_Locale * This );
00118 
00123 SAL_DLLPUBLIC rtl_uString * SAL_CALL rtl_locale_getVariant( rtl_Locale * This );
00124 
00128 SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_locale_hashCode( rtl_Locale * This );
00129 
00133 SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_locale_equals( rtl_Locale * This, rtl_Locale * obj  );
00134 
00135 #ifdef __cplusplus
00136 }
00137 #endif
00138 
00139 #endif /* _RTL_LOCALE_H_ */
00140 
00141 
00142 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines