OPEN SOURCE SOCIAL NETWORK 6.6
Loading...
Searching...
No Matches
OssnTranslit Class Reference

Static Public Member Functions

static urlize ($string, $separator='-')
 
static transliterateAscii ($utf8)
 
static getAsciiTranslitMap ()
 
static hasNormalizerSupport ()
 

Member Function Documentation

◆ getAsciiTranslitMap()

static getAsciiTranslitMap ( )
static

Get array of UTF-8 (NFC) character replacements.

Returns
array

◆ hasNormalizerSupport()

static hasNormalizerSupport ( )
static

Tests that "normalizer_normalize" exists and works

Returns
bool

◆ transliterateAscii()

static transliterateAscii (   $utf8)
static

Transliterate Western multibyte chars to ASCII

Parameters
string$utf8a UTF-8 string
Returns
string

◆ urlize()

static urlize (   $string,
  $separator = '-' 
)
static

Create a version of a string for embedding in a URL

Parameters
string$stringA UTF-8 string
string$separatorThe character to separate words with
Returns
string

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