Method

IpuzPuzzleget_charset

Declaration [src]

IpuzCharset*
ipuz_puzzle_get_charset (
  IpuzPuzzle* self
)

Description [src]

Returns the characters that can be entered in the puzzle.

The charset is optional in ipuz, and is NULL unless the puzzle declares one or it’s set with ipuz_puzzle_set_charset(). A NULL charset means the allowed characters are unknown.

Applications that want a charset regardless are expected to pick one themselves, typically from IpuzPuzzle:locale.

There’s no guarantee that the returned charset matches the characters of the puzzle — that should be checked independently if required.

Gets propertyIpuz.Puzzle:charset

Return value

Type: IpuzCharset

The characters that can be entered in the puzzle, or NULL if the puzzle doesn’t define any.

The returned data is owned by the instance.
The return value can be NULL.