static int
culture_lcid_locator (const void *a, const void *b)
{
- const int *lcid = a;
- const CultureInfoEntry *bb = b;
+ const int *lcid = (const int *)a;
+ const CultureInfoEntry *bb = (const CultureInfoEntry *)b;
return *lcid - bb->lcid;
}
static int
culture_name_locator (const void *a, const void *b)
{
- const char *aa = a;
- const CultureInfoNameEntry *bb = b;
+ const char *aa = (const char *)a;
+ const CultureInfoNameEntry *bb = (const CultureInfoNameEntry *)b;
int ret;
ret = strcmp (aa, idx2string (bb->name));
static int
region_name_locator (const void *a, const void *b)
{
- const char *aa = a;
- const RegionInfoNameEntry *bb = b;
+ const char *aa = (const char *)a;
+ const RegionInfoNameEntry *bb = (const RegionInfoNameEntry *)b;
int ret;
ret = strcmp (aa, idx2string (bb->name));
char *n;
n = mono_string_to_utf8 (name);
- ne = mono_binary_search (n, culture_name_entries, NUM_CULTURE_ENTRIES,
+ ne = (const CultureInfoNameEntry *)mono_binary_search (n, culture_name_entries, NUM_CULTURE_ENTRIES,
sizeof (CultureInfoNameEntry), culture_name_locator);
g_free (n);
if (ne == NULL) {
{
const CultureInfoEntry *ci;
- ci = mono_binary_search (&lcid, culture_entries, NUM_CULTURE_ENTRIES, sizeof (CultureInfoEntry), culture_lcid_locator);
+ ci = (const CultureInfoEntry *)mono_binary_search (&lcid, culture_entries, NUM_CULTURE_ENTRIES, sizeof (CultureInfoEntry), culture_lcid_locator);
return ci;
}
const RegionInfoEntry *entry;
const CultureInfoEntry *ne;
- ne = mono_binary_search (&lcid, culture_entries, NUM_CULTURE_ENTRIES, sizeof (CultureInfoEntry), culture_lcid_locator);
+ ne = (const CultureInfoEntry *)mono_binary_search (&lcid, culture_entries, NUM_CULTURE_ENTRIES, sizeof (CultureInfoEntry), culture_lcid_locator);
if (ne == NULL)
return FALSE;
char *n;
n = mono_string_to_utf8 (name);
- ne = mono_binary_search (n, culture_name_entries, NUM_CULTURE_ENTRIES,
+ ne = (const CultureInfoNameEntry *)mono_binary_search (n, culture_name_entries, NUM_CULTURE_ENTRIES,
sizeof (CultureInfoNameEntry), culture_name_locator);
if (ne == NULL) {
char *n;
n = mono_string_to_utf8 (name);
- ne = mono_binary_search (n, region_name_entries, NUM_REGION_ENTRIES,
+ ne = (const RegionInfoNameEntry *)mono_binary_search (n, region_name_entries, NUM_REGION_ENTRIES,
sizeof (RegionInfoNameEntry), region_name_locator);
if (ne == NULL) {
return(0x007F);
}
-MonoString *ves_icall_System_String_InternalReplace_Str_Comp (MonoString *this_obj, MonoString *old, MonoString *new, MonoCompareInfo *comp)
+MonoString *ves_icall_System_String_InternalReplace_Str_Comp (MonoString *this_obj, MonoString *old, MonoString *new_, MonoCompareInfo *comp)
{
/* Do a normal ascii string compare and replace, as we only
* know the invariant locale if we dont have ICU
*/
- return(string_invariant_replace (this_obj, old, new));
+ return(string_invariant_replace (this_obj, old, new_));
}
static gint32 string_invariant_compare_char (gunichar2 c1, gunichar2 c2,