Function

GLibstr_is_ascii

Declaration

gboolean
g_str_is_ascii (
  const gchar* str
)

Description

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

Available since:2.40

Parameters

str const gchar*
 

A string.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.

Return value

Returns: gboolean
 

TRUE if str is ASCII.