3 * Culture-sensitive handling
6 * Dick Porter (dick@ximian.com)
8 * (C) 2003 Ximian, Inc.
11 #ifndef _MONO_METADATA_LOCALES_H_
12 #define _MONO_METADATA_LOCALES_H_
16 #include <mono/metadata/object-internals.h>
17 #include <mono/metadata/icalls.h>
19 /* This is a copy of System.Globalization.CompareOptions */
21 CompareOptions_None
=0x00,
22 CompareOptions_IgnoreCase
=0x01,
23 CompareOptions_IgnoreNonSpace
=0x02,
24 CompareOptions_IgnoreSymbols
=0x04,
25 CompareOptions_IgnoreKanaType
=0x08,
26 CompareOptions_IgnoreWidth
=0x10,
27 CompareOptions_StringSort
=0x20000000,
28 CompareOptions_Ordinal
=0x40000000
32 MonoBoolean
ves_icall_System_Globalization_CalendarData_fill_calendar_data (MonoCalendarData
*this_obj
, MonoString
*name
, gint32 calendar_index
);
35 void ves_icall_System_Globalization_CultureData_fill_culture_data (MonoCultureData
*this_obj
, gint32 datetime_index
);
38 void ves_icall_System_Globalization_CultureData_fill_number_data (MonoNumberFormatInfo
* number
, gint32 number_index
);
41 void ves_icall_System_Globalization_CultureInfo_construct_internal_locale (MonoCultureInfo
*this_obj
, MonoString
*locale
);
44 MonoStringHandle
ves_icall_System_Globalization_CultureInfo_get_current_locale_name (MonoError
*error
);
47 MonoBoolean
ves_icall_System_Globalization_CultureInfo_construct_internal_locale_from_lcid (MonoCultureInfo
*this_obj
, gint lcid
);
50 MonoBoolean
ves_icall_System_Globalization_CultureInfo_construct_internal_locale_from_name (MonoCultureInfo
*this_obj
, MonoString
*name
);
53 MonoArray
*ves_icall_System_Globalization_CultureInfo_internal_get_cultures (MonoBoolean neutral
, MonoBoolean specific
, MonoBoolean installed
);
56 void ves_icall_System_Globalization_CompareInfo_construct_compareinfo (MonoCompareInfo
*comp
, MonoString
*locale
);
59 int ves_icall_System_Globalization_CompareInfo_internal_compare (MonoCompareInfo
*this_obj
, MonoString
*str1
, gint32 off1
, gint32 len1
, MonoString
*str2
, gint32 off2
, gint32 len2
, gint32 options
);
62 void ves_icall_System_Globalization_CompareInfo_free_internal_collator (MonoCompareInfo
*this_obj
);
66 ves_icall_System_Globalization_RegionInfo_construct_internal_region_from_name (MonoRegionInfo
*this_obj
,
70 void ves_icall_System_Globalization_CompareInfo_assign_sortkey (MonoCompareInfo
*this_obj
, MonoSortKey
*key
, MonoString
*source
, gint32 options
);
73 int ves_icall_System_Globalization_CompareInfo_internal_index (MonoCompareInfo
*this_obj
, MonoString
*source
, gint32 sindex
, gint32 count
, MonoString
*value
, gint32 options
, MonoBoolean first
);
76 int ves_icall_System_Globalization_CompareInfo_internal_index_char (MonoCompareInfo
*this_obj
, MonoString
*source
, gint32 sindex
, gint32 count
, gunichar2 value
, gint32 options
, MonoBoolean first
);
80 ves_icall_System_Threading_Thread_current_lcid (void);
83 MonoString
*ves_icall_System_String_InternalToLower_Comp (MonoString
*this_obj
, MonoCultureInfo
*cult
);
86 MonoString
*ves_icall_System_String_InternalToUpper_Comp (MonoString
*this_obj
, MonoCultureInfo
*cult
);
89 gunichar2
ves_icall_System_Char_InternalToUpper_Comp (gunichar2 c
, MonoCultureInfo
*cult
);
92 gunichar2
ves_icall_System_Char_InternalToLower_Comp (gunichar2 c
, MonoCultureInfo
*cult
);
95 void ves_icall_System_Text_Normalization_load_normalization_resource (guint8
**argProps
, guint8
** argMappedChars
, guint8
** argCharMapIndex
, guint8
** argHelperIndex
, guint8
** argMapIdxToComposite
, guint8
** argCombiningClass
, MonoError
*error
);
97 #endif /* _MONO_METADATA_FILEIO_H_ */