Abstract Class JStringNormalise

Description

Joomla Platform String Normalise Class

  • abstract:
  • since: 11.3

Located in /libraries/joomla/string/normalise.php (line 19)


	
			
Method Summary
 static string fromCamelCase (string $input, [boolean $grouped = false])
 static string toCamelCase (string $input)
 static string toDashSeparated (string $input)
 static string toKey (string $input)
 static string toSpaceSeparated (string $input)
 static string toUnderscoreSeparated (string $input)
 static string toVariable (string $input)
Methods
static fromCamelCase (line 43)

Method to convert a string from camel case.

This method offers two modes. Grouped allows for splitting on groups of uppercase characters as follows:

"FooBarABCDef" becomes array("Foo", "Bar", "ABC", "Def") "JFooBar" becomes array("J", "Foo", "Bar") "J001FooBar002" becomes array("J001", "Foo", "Bar002") "abcDef" becomes array("abc", "Def") "abc_defGhi_Jkl" becomes array("abc_def", "Ghi_Jkl") "ThisIsA_NASAAstronaut" becomes array("This", "Is", "A_NASA", "Astronaut")) "JohnFitzgerald_Kennedy" becomes array("John", "Fitzgerald_Kennedy"))

Non-grouped will split strings at each uppercase character.

  • return: The space separated string.
  • since: 12.1
  • access: public
static string fromCamelCase (string $input, [boolean $grouped = false])
  • string $input: The string input (ASCII only).
  • boolean $grouped: Optionally allows splitting on groups of uppercase characters.
static toCamelCase (line 59)

Method to convert a string into camel case.

  • return: The camel case string.
  • since: 11.3
  • access: public
static string toCamelCase (string $input)
  • string $input: The string input (ASCII only).
static toDashSeparated (line 78)

Method to convert a string into dash separated form.

  • return: The dash separated string.
  • since: 11.3
  • access: public
static string toDashSeparated (string $input)
  • string $input: The string input (ASCII only).
static toKey (line 157)

Method to convert a string into key form.

  • return: The key string.
  • since: 11.3
  • access: public
static string toKey (string $input)
  • string $input: The string input (ASCII only).
static toSpaceSeparated (line 95)

Method to convert a string into space separated form.

  • return: The space separated string.
  • since: 11.3
  • access: public
static string toSpaceSeparated (string $input)
  • string $input: The string input (ASCII only).
static toUnderscoreSeparated (line 112)

Method to convert a string into underscore separated form.

  • return: The underscore separated string.
  • since: 11.3
  • access: public
static string toUnderscoreSeparated (string $input)
  • string $input: The string input (ASCII only).
static toVariable (line 129)

Method to convert a string into variable form.

  • return: The variable string.
  • since: 11.3
  • access: public
static string toVariable (string $input)
  • string $input: The string input (ASCII only).

Documentation generated on Tue, 19 Nov 2013 15:09:35 +0100 by phpDocumentor 1.4.3