Module tongue.util

Tongue needs to process lots of interesting data, here are some utility functions it might use.

Functions

split_category (category) Split a category into its components.


Functions

split_category (category)
Split a category into its components.

Categories can have low level languages, sub languages (countries), and character sets. This routine splits a category string in the same way as glibc does which seems to be a reasonable ‘standard’ to use.

Parameters:

  • category string The category to split up

Returns:

  1. string The base (low level) language name.
  2. optional string The sub-language (or nil if no sub-language was specified)
  3. optional string The characterset (or nil if no character set was specified)
generated by LDoc 1.4.3 Last updated 1476597862