Jump to content

Character creation with special characters


Go to solution Solved by Ulthar,

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

check_name_alphabet(const char* str) search and change.:
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)
    {
        if (isdigit(tmp) || isalpha(tmp))
            continue;
    #ifdef USE_SPECIAL_CHARACTERS
        switch (*tmp)
        {
        case ' ':
        case '.':
        case '-':
        case '_':
        case '@':
        case '!':
        case '^':
        case '#':
        case '$':
        case '%':
        case '&':
        case '*':
        case '(':
        case ')':
            continue;
        }
    #endif
    return 0;
    }

    return check_name_independent(str);
}

 

service.h add.:

#define USE_SPECIAL_CHARACTERS

INFO : locale_service.cpp 

Edited by Device41
wrong charcter
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.