_init()
ascii()
camelize()
classify()
demodulize()
denamespace()
foreign_key()
friendly_title()
get_namespace()
humanize()
is_countable()
load_rules()
ordinalize()
pluralize()
singularize()
tableize()
underscore()
words_to_upper()
$plural_rules
$singular_rules
$uncountable_words
Some of this code was written by Flinn Mueller.
| package | Fuel | 
|---|---|
| category | Core | 
| copyright | Flinn Mueller | 
| link | http://docs.fuelphp.com/classes/inlector.html | 
_init()
ascii(string $str, bool $allow_non_ascii) : string
stringstring to translate
boolwhether to remove non ascii
stringtranslated stringcamelize(string $underscored_word) : string
stringthe underscored word
stringthe CamelCased version of $underscored_wordclassify(string $name, bool $force_singular) : string
stringthe table name
boolwhether to singularize the table name or not
stringthe class namedemodulize(string $class_name_in_module) : string
stringthe modulized class
stringthe string without the class namedenamespace(string $class_name) : string
stringthe class name
stringthe string without the namespaceforeign_key(string $class_name, bool $use_underscore) : string
stringthe class name
boolwhether to use an underscore or not
stringthe foreign keyfriendly_title(string $str, string $sep, bool $lowercase, bool $allow_non_ascii) : string
Only works with UTF8 input and and only outputs 7 bit ASCII characters.
stringthe text
stringthe separator
boolwhether to convert to lowercase
boolwhether to allow non ascii
stringthe new titleget_namespace(string $class_name) : string
stringthe class name
stringthe string without the namespacehumanize(string $str, string $sep, bool $lowercase) : string
stringthe word
stringthe separator (either _ or -)
boollowercase string and upper case first
stringthe human version of given stringis_countable(string $word) : bool
stringthe word to check
boolif the word is countableload_rules()
ordinalize(int $number) : string
1st 2nd 3rd 4th 5th
| link | http://snipplr.com/view/4627/a-function-to-add-a-prefix-to-numbers-ex-1st-2nd-3rd-4th-5th/ | 
|---|
intthe number to ordinalize
stringthe ordinalized version of $numberpluralize(string $word, int $count) : string
stringthe word to pluralize
intnumber of instances
stringthe plural version of $wordsingularize(string $word) : string
stringthe word to singularize
stringthe singular version of $wordtableize(string $class_name) : string
The table name is a pluralized version of the class name.
stringthe table name
stringthe table nameunderscore(string $camel_cased_word) : string
stringthe CamelCased word
stringan underscore separated version of $camel_cased_wordwords_to_upper(string $class, string $sep) : string
stringclassname
stringseparator
string$plural_rules : array
$singular_rules : array
$uncountable_words : array