Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int check_name_alphabet(const char * str)
- {
- const char* tmp;
- if (!str || !*str)
- return 0;
- if (strlen(str) < 2)
- return 0;
- for (tmp = str; *tmp; ++tmp)
- {
- //fixx name ¢¯!¡Æ
- unsigned char uc_tmp = *tmp;
- if (uc_tmp == 176 || uc_tmp == 33 || uc_tmp == 191 || uc_tmp == 60)
- continue;
- //fixx name ¢¯!¡Æ end
- // ¾ËÆĺª°ú ¼öÀÚ¸¸ Çã¿ë
- if (isdigit(*tmp) || isalpha(*tmp))
- continue;
- else
- return 0;
- }
- return check_name_independent(str);
- }
- // DISABLE_SPECIAL_CHAR_NAMING
- bool sjis_is_disable_name_char(const char* src)
- {
- static const char* sjis_symbols = "?";
- if (strncmp(src, sjis_symbols, 2) == 0)
- return true;
- return false;
- }
- // END_OF_DISABLE_SPECIAL_CHAR_NAMING
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement