MediaWiki master
BanConverter Class Reference

Balinese specific code. More...

Inherits LanguageConverterIcu.

Collaboration diagram for BanConverter:

Public Member Functions

 getLanguageVariants ()
 
 getMainCode ()
 
 getVariantNames ()
 
 getVariantsFallbacks ()
 
 guessVariant ( $text, $variant)
 Guess if a text is written in Balinese or Latin.
 
- Public Member Functions inherited from LanguageConverterIcu
 icuTranslate ( $text, $variant)
 Translate a string to a variant using ICU transliterator.
 
 translate ( $text, $variant)
 
- Public Member Functions inherited from LanguageConverterSpecific
 findVariantLink (&$link, &$nt, $ignoreOtherCond=false)
 A function wrapper:
 

Protected Member Functions

 getIcuRules ()
 Get the array mapping variants to ICU transliteration rules.
 
 getTransliteratorAliases ()
 Get the array mapping variant aliases to the main variant.
 
- Protected Member Functions inherited from LanguageConverterIcu
 getTransliterators ()
 Get the array mapping variants to ICU transliterators.
 
 loadDefaultTables ()
 Creates empty tables.
 

Additional Inherited Members

- Protected Attributes inherited from LanguageConverterIcu
Transliterator[] $mTransliterators
 

Detailed Description

Balinese specific code.

Definition at line 26 of file BanConverter.php.

Member Function Documentation

◆ getIcuRules()

BanConverter::getIcuRules ( )
protected

Get the array mapping variants to ICU transliteration rules.

Subclasses must implement this.

Returns
string[]

Reimplemented from LanguageConverterIcu.

Definition at line 56 of file BanConverter.php.

◆ getLanguageVariants()

BanConverter::getLanguageVariants ( )

Definition at line 32 of file BanConverter.php.

◆ getMainCode()

BanConverter::getMainCode ( )

Definition at line 28 of file BanConverter.php.

◆ getTransliteratorAliases()

BanConverter::getTransliteratorAliases ( )
protected

Get the array mapping variant aliases to the main variant.

Returns
string[]

Reimplemented from LanguageConverterIcu.

Definition at line 1016 of file BanConverter.php.

◆ getVariantNames()

BanConverter::getVariantNames ( )

Definition at line 45 of file BanConverter.php.

◆ getVariantsFallbacks()

BanConverter::getVariantsFallbacks ( )

Definition at line 36 of file BanConverter.php.

◆ guessVariant()

BanConverter::guessVariant ( $text,
$variant )

Guess if a text is written in Balinese or Latin.

Overrides LanguageConverter::guessVariant()

Parameters
string$textThe text to be checked
string$variantLanguage code of the variant to be checked for
Returns
bool True if $text appears to be written in $variant

Definition at line 1031 of file BanConverter.php.


The documentation for this class was generated from the following file: