Method

IpuzPuzzleset_locale

Declaration [src]

void
ipuz_puzzle_set_locale (
  IpuzPuzzle* self,
  const gchar* locale
)

Description [src]

Sets the locale of the puzzle.

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

It’s highly recommended that calls to ipuz_puzzle_set_locale() be paired with calls to ipuz_puzzle_set_charset().

Example locale strings:

"en_NZ" — New Zealand English
"bg_BG" — Bulgarian
"de" — German

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

Sets propertyIpuz.Puzzle:locale

Parameters

locale

Type: const gchar*

No description available.

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