is_ascii


Description:

[ Version ( since = "2.40" ) ]
[ CCode ( cname = "g_str_is_ascii" ) ]
public bool is_ascii ()

Determines if a string is pure ASCII.

A string is pure ASCII if it contains no bytes with the high bit set.

Parameters:

str

a string

Returns:

true if str is ASCII