Class NCLStr

Description

Класс содержит функции для работы со строками, которые используются в NCLNameCaseLib

Located in /NCL/NCLStr.php (line 14)


	
			
Variable Summary
static string $charset
Method Summary
static string connectLetters (array $lettersArr)
static array explode (string $pattern, string $string)
static bool isLowerCase (string $phrase)
static bool isUpperCase (string $phrase)
static array splitLetters (string $phrase)
static int strlen (string $str)
static int strpos (string $haystack, string $needle, [int $offset = 0])
static int strrpos (string $haystack, string $needle, [int $offset = null])
static string strtolower (string $str)
static string strtoupper (string $str)
static int substr (string $str, int $start, [int $length = null])
Variables
static string $charset = 'utf-8' (line 20)

Кодировка, в котороя работает система

Methods
static method connectLetters (line 129)

Соединяет массив букв в строку

  • return: строка
static string connectLetters (array $lettersArr)
  • array $lettersArr: массив букв
static method explode (line 140)

Разбивает строку на части использую шаблон

  • return: разбитый массив
static array explode (string $pattern, string $string)
  • string $pattern: шаблон разбития
  • string $string: строка, которую нужно разбить
static method isLowerCase (line 93)

Проверяет в нижнем ли регистре находится строка

  • return: в нижнем ли регистре строка
static bool isLowerCase (string $phrase)
  • string $phrase: строка
static method isUpperCase (line 103)

Проверяет в верхнем ли регистре находится строка

  • return: в верхнем ли регистре строка
static bool isUpperCase (string $phrase)
  • string $phrase: строка
static method splitLetters (line 113)

Превращает строку в массив букв

  • return: массив букв
static array splitLetters (string $phrase)
  • string $phrase: строка
static method strlen (line 51)

Определение длины строки

  • return: длина строки
static int strlen (string $str)
  • string $str: строка
static method strpos (line 41)

Поиск подстроки в строке

  • return: позиция подстроки в строке
static int strpos (string $haystack, string $needle, [int $offset = 0])
  • string $haystack: строка, в которой искать
  • string $needle: подстрока, которую нужно найти
  • int $offset: начало поиска
static method strrpos (line 83)

Поиск подстроки в строке справа

  • return: позиция подстроки в строке
static int strrpos (string $haystack, string $needle, [int $offset = null])
  • string $haystack: строка, в которой искать
  • string $needle: подстрока, которую нужно найти
  • int $offset: начало поиска
static method strtolower (line 61)

Переводит строку в нижний регистр

  • return: строка в нижнем регистре
static string strtolower (string $str)
  • string $str: строка
static method strtoupper (line 71)

Переводит строку в верхний регистр

  • return: строка в верхнем регистре
static string strtoupper (string $str)
  • string $str: строка
static method substr (line 29)

Получить подстроку из строки

  • return: подстрока
static int substr (string $str, int $start, [int $length = null])
  • string $str: строка
  • int $start: начало подстроки
  • int $length: длина подстроки

Documentation generated on Sat, 09 Jul 2011 17:55:20 +0300 by phpDocumentor 1.4.3