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 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.

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.