Logo Search packages:      
Sourcecode: pulseaudio version File versions  Download package

char* pa_ascii_valid ( const char *  str  ) 

Test if the specified strings qualifies as valid 7-bit ASCII. Return the string if so, otherwise NULL.


Definition at line 262 of file utf8.c.

    const char *p;

    for (p = str; *p; p++)
        if ((unsigned char) *p >= 128)
            return NULL;

    return (char*) str;

Generated by  Doxygen 1.6.0   Back to index