Method

IpuzPuzzleget_locale

Declaration [src]

const gchar*
ipuz_puzzle_get_locale (
  IpuzPuzzle* self
)

Description [src]

Returns the locale of the puzzle.

The can be used for filtering by the language of the puzzle for users in applications. It also changes the default IpuzPuzzle:charset type. It should not affect the parsing of the puzzle at all — any encoding information included is ignored.

Puzzle that don’t have a language tag explicitly set default to the “C” Locale.

Example locale strings:

"en_NZ"
"C"

This is a libipuz-only extension to the ipuz spec.

Gets propertyIpuz.Puzzle:locale

Return value

Type: const gchar*

The locale of the puzzle.

The data is owned by the instance.
The value is a NUL terminated UTF-8 string.