u16 mmi_sms_char_towupper(u16 wchar)
else if (wchar == 0x0103 || wchar == 0x01a1 || wchar == 0x01b0 || wchar == 0x0188 || wchar == 0x018c || wchar == 0x0192 ||
wchar == 0x01ac || wchar == 0x01b9 || wchar == 0x01f3)
else if (wchar >= 0x0450 && wchar <= 0x045f)
else if (wchar == 0x0491)
else if (wchar >= 0x0100 && wchar <= 0x0137 || wchar >= 0x0182 && wchar <= 0x0185 ||
wchar >= 0x0198 && wchar <= 0x01a5 || wchar >= 0x01de && wchar <= 0x01ef ||
wchar >= 0x01f8 && wchar <= 0x01ff || wchar >= 0x0222 && wchar <= 0x0233)
else if (wchar >= 0x0139 && wchar <= 0x0148 || wchar >= 0x014a && wchar <=0x0177 || wchar >= 0x0179 && wchar <=0x017e ||
wchar >= 0x01b3 && wchar <= 0x01b6 || wchar >= 0x02cd && wchar <= 0x01dc)
else
}s32 mmi_sms_compare_chars(u16 char1, u16 char2)
/* no match */
return char1 - char2;
}void mmi_sms_compare_ucs2_strings(s8 *string1, s8 *string2, u8 *same_count, s32 *distance)
else
for (i = 0; i < max_len && i < 60; i++) /* use max phonebook strlen as upper bound */
/* for (i = 0; i < max_len; i++) */
/* first and second is congruence */
else if (len1 == len2)
/* len1 < len2: first is less than second */
else
//if (min_len == 0)
// *distance = - *distance;
break;
}/* first, compare from 0 to min_len */
else
/* first and second is not equal, return distance */
else}}
}char *mmi_ucs2ncpy(char *strdestination, const char *strsource, u32 size)
pbool smsgetnewmsgcontent(const s8 * sms_data)
smscontent = (u8 *)sms_data;
for( ;i < sms_str_len; i++ ) }
return false;
}
漢字問題 比較
不知是那個大俠的東東,不錯啊 public class letter public static int pare string str1,string str2 catch exception e result chinese pareto m s1,m s2 return result publ...
陣列比較問題
問題描述 比較兩個陣列,要求從陣列最後乙個元素開始逐個元素向前比較,如果2個陣列長度不等,則只比較較短長度陣列個數元素。請程式設計實現上述比較,並返回比較中發現的不相等元素的個數 比如 陣列和陣列按題述要求比較,不相等元素個數為0 陣列和陣列按題述要求比較,不相等元素個數為3 include std...
Long Integer比較問題
int 型別比較 結果和數值無關 int m 128 int n 128 system.out.println m n true int i 10000 long l 10000l system.out.println i l trueinteger 型別比較 結果和數值有關 常量池 128 127...