ʻO ka hapa nui o nā mana waihona kiʻi ʻaʻole e hoʻokaʻawale i ka lexicographically, akā e hoʻohana i ka "kūlohelohe". ʻO nā poloka o nā helu ma nā inoa e unuhi ʻia ma ke ʻano he mau helu - lanakila ka poloka nui o nā helu, ʻoiai inā he ʻoiaʻiʻo ka ʻaoʻao ʻē aʻe. ʻO ka manaʻo ma hope o ka hoʻokaʻawale kūlohelohe: ʻO ka mea maʻamau e makemake ai ka poʻe "9 ma mua o 10," "Mokuna 2 ma mua o ka Mokuna 10" - me ka ʻole e hoʻohui i nā zeros alakaʻi.
Hoʻokaʻawale maoli ʻia nā hui file e like me kēia:
build-9e2.logbuild-950.log
Kamahaʻo, akā hiki ke wehewehe ʻia: ʻoi aku ka liʻiliʻi o ka huahelu mua \(9\) ma mua o ka poloka mua o nā huahelu \(950\) .
IMG_12113419_90.jpgIMG_0554363070_90.jpg
ʻOi aku ka helu \(12113419\) ma mua o \(554363070\) (wehe ʻia ke alakaʻi \(0\) .
temp_0C.txttemp_2C.txttemp_-3C.txttemp_10C.txttemp_-12C.txt
ʻO nā helu i hoʻohālikelike ʻia ʻo \(0\) , \(2\) , \(3\) , \(10\) , \(12\) – ʻaʻole i manaʻo ʻia ka “-” he ʻāpana o ka helu.
ʻAʻole ʻokoʻa ka "alphabetical" ma ka honua holoʻokoʻa: ʻO ka nui, nā umlaut e like me ä (Kelemānia), a i ʻole nā huaʻōlelo lehulehu e like me ch (Czech) alakaʻi i nā ʻano like ʻole. "Purely alphabetical" no laila pili i ka pōʻaiapili. Hoʻokomo ʻo Windows Explorer i kēia ma ka hana StrCmpLogicalW . ʻOiai ʻo kāna kumu kumu (shlwapi.dll) he kuleana a ʻaʻole i ka lehulehu, aia nā hana hou, no ka laʻana, mai ReactOS.:
{
TRACE("%s, %s\n", wine_dbgstr_w(str), wine_dbgstr_w(comp));
if (!str || !comp)
return 0;
while (*str)
{
if (!*comp)
return 1;
else if (*str >= '0' && *str <= '9')
{
int str_value, comp_value;
if (*comp < '0' || *comp > '9')
return -1;
/* Compare the numbers */
StrToIntExW(str, 0, &str_value);
StrToIntExW(comp, 0, &comp_value);
if (str_value < comp_value)
return -1;
else if (str_value > comp_value)
return 1;
/* Skip */
while (*str >= '0' && *str <= '9') str++;
while (*comp >= '0' && *comp <= '9') comp++;
}
else if (*comp >= '0' && *comp <= '9')
return 1;
else
{
int diff = ChrCmpIW(*str, *comp);
if (diff > 0)
return 1;
else if (diff < 0)
return -1;
str++;
comp++;
}
}
if (*comp)
return -1;
return 0;
}
Hōʻike ʻo Google Drive, OneDrive, KDE, a me nā mea ʻē aʻe i kahi ʻano ʻano like. CLI mea hana like ls a find Eia naʻe, ʻokoʻa lākou ma mua o nā mana faila GUI. Aia nā Semantics i nā inoa faila, ʻaʻole i ka API. Inā makemake ʻoe i nā hopena me ka pīhoihoi ʻole, e wehewehe i nā kuʻina: nā mea hoʻokaʻawale mau, nā helu hoe, a me ka mālama pono ʻana i nā ʻāpana. A laila ʻike hou ʻia ka "alphabetical".