mirror of
https://github.com/retailcrm/NameCaseLib.git
synced 2024-12-05 03:16:06 +03:00
542 lines
20 KiB
HTML
542 lines
20 KiB
HTML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
<head>
|
||
<!-- template designed by Marco Von Ballmoos -->
|
||
<title>Docs For Class NCLStr</title>
|
||
<link rel="stylesheet" href="../media/stylesheet.css" />
|
||
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
|
||
</head>
|
||
<body>
|
||
<div class="page-body">
|
||
<h2 class="class-name">Class NCLStr</h2>
|
||
|
||
<a name="sec-description"></a>
|
||
<div class="info-box">
|
||
<div class="info-box-title">Description</div>
|
||
<div class="nav-bar">
|
||
<span class="disabled">Description</span> |
|
||
<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
|
||
| <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
|
||
|
||
</div>
|
||
<div class="info-box-body">
|
||
<!-- ========== Info from phpDoc block ========= -->
|
||
<p class="short-description">Класс содержит функции для работы со строками, которые используются в NCLNameCaseLib</p>
|
||
<ul class="tags">
|
||
<li><span class="field">author:</span> Андрей Чайка <<a href="mailto:bymer3@gmail.com">bymer3@gmail.com</a>></li>
|
||
<li><span class="field">version:</span> 0.4.1</li>
|
||
</ul>
|
||
<p class="notes">
|
||
Located in <a class="field" href="_NCL---NCLStr.php.html">/NCL/NCLStr.php</a> (line <span class="field">8</span>)
|
||
</p>
|
||
|
||
|
||
<pre></pre>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<a name="sec-var-summary"></a>
|
||
<div class="info-box">
|
||
<div class="info-box-title">Variable Summary</span></div>
|
||
<div class="nav-bar">
|
||
<a href="#sec-description">Description</a> |
|
||
<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
|
||
|
|
||
<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
|
||
|
||
</div>
|
||
<div class="info-box-body">
|
||
<div class="var-summary">
|
||
<div class="var-title">
|
||
static <span class="var-type">string</span>
|
||
<a href="#$charset" title="details" class="var-name">$charset</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<a name="sec-method-summary"></a>
|
||
<div class="info-box">
|
||
<div class="info-box-title">Method Summary</span></div>
|
||
<div class="nav-bar">
|
||
<a href="#sec-description">Description</a> |
|
||
<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
|
||
|
||
|
|
||
<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
|
||
</div>
|
||
<div class="info-box-body">
|
||
<div class="method-summary">
|
||
<div class="method-definition">
|
||
static <span class="method-result">string</span>
|
||
<a href="#connectLetters" title="details" class="method-name">connectLetters</a>
|
||
(<span class="var-type">array</span> <span class="var-name">$lettersArr</span>)
|
||
</div>
|
||
<div class="method-definition">
|
||
static <span class="method-result">array</span>
|
||
<a href="#explode" title="details" class="method-name">explode</a>
|
||
(<span class="var-type">string</span> <span class="var-name">$pattern</span>, <span class="var-type">string</span> <span class="var-name">$string</span>)
|
||
</div>
|
||
<div class="method-definition">
|
||
static <span class="method-result">bool</span>
|
||
<a href="#isLowerCase" title="details" class="method-name">isLowerCase</a>
|
||
(<span class="var-type">string</span> <span class="var-name">$phrase</span>)
|
||
</div>
|
||
<div class="method-definition">
|
||
static <span class="method-result">bool</span>
|
||
<a href="#isUpperCase" title="details" class="method-name">isUpperCase</a>
|
||
(<span class="var-type">string</span> <span class="var-name">$phrase</span>)
|
||
</div>
|
||
<div class="method-definition">
|
||
static <span class="method-result">array</span>
|
||
<a href="#splitLetters" title="details" class="method-name">splitLetters</a>
|
||
(<span class="var-type">string</span> <span class="var-name">$phrase</span>)
|
||
</div>
|
||
<div class="method-definition">
|
||
static <span class="method-result">int</span>
|
||
<a href="#strlen" title="details" class="method-name">strlen</a>
|
||
(<span class="var-type">string</span> <span class="var-name">$str</span>)
|
||
</div>
|
||
<div class="method-definition">
|
||
static <span class="method-result">int</span>
|
||
<a href="#strpos" title="details" class="method-name">strpos</a>
|
||
(<span class="var-type">string</span> <span class="var-name">$haystack</span>, <span class="var-type">string</span> <span class="var-name">$needle</span>, [<span class="var-type">int</span> <span class="var-name">$offset</span> = <span class="var-default">0</span>])
|
||
</div>
|
||
<div class="method-definition">
|
||
static <span class="method-result">int</span>
|
||
<a href="#strrpos" title="details" class="method-name">strrpos</a>
|
||
(<span class="var-type">string</span> <span class="var-name">$haystack</span>, <span class="var-type">string</span> <span class="var-name">$needle</span>, [<span class="var-type">int</span> <span class="var-name">$offset</span> = <span class="var-default">null</span>])
|
||
</div>
|
||
<div class="method-definition">
|
||
static <span class="method-result">string</span>
|
||
<a href="#strtolower" title="details" class="method-name">strtolower</a>
|
||
(<span class="var-type">string</span> <span class="var-name">$str</span>)
|
||
</div>
|
||
<div class="method-definition">
|
||
static <span class="method-result">string</span>
|
||
<a href="#strtoupper" title="details" class="method-name">strtoupper</a>
|
||
(<span class="var-type">string</span> <span class="var-name">$str</span>)
|
||
</div>
|
||
<div class="method-definition">
|
||
static <span class="method-result">int</span>
|
||
<a href="#substr" title="details" class="method-name">substr</a>
|
||
(<span class="var-type">string</span> <span class="var-name">$str</span>, <span class="var-type">int</span> <span class="var-name">$start</span>, [<span class="var-type">int</span> <span class="var-name">$length</span> = <span class="var-default">null</span>])
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<a name="sec-vars"></a>
|
||
<div class="info-box">
|
||
<div class="info-box-title">Variables</div>
|
||
<div class="nav-bar">
|
||
<a href="#sec-description">Description</a> |
|
||
<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
|
||
|
||
|
||
|
|
||
<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
|
||
|
||
</div>
|
||
<div class="info-box-body">
|
||
<a name="var$charset" id="$charset"><!-- --></A>
|
||
<div class="oddrow">
|
||
|
||
<div class="var-header">
|
||
<span class="var-title">
|
||
static <span class="var-type">string</span>
|
||
<span class="var-name">$charset</span>
|
||
= <span class="var-default"> 'utf-8'</span> (line <span class="line-number">14</span>)
|
||
</span>
|
||
</div>
|
||
|
||
<!-- ========== Info from phpDoc block ========= -->
|
||
<p class="short-description">Кодировка, в котороя работает система</p>
|
||
|
||
|
||
|
||
|
||
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<a name="sec-methods"></a>
|
||
<div class="info-box">
|
||
<div class="info-box-title">Methods</div>
|
||
<div class="nav-bar">
|
||
<a href="#sec-description">Description</a> |
|
||
<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
|
||
<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
|
||
|
||
</div>
|
||
<div class="info-box-body">
|
||
<A NAME='method_detail'></A>
|
||
<a name="methodconnectLetters" id="connectLetters"><!-- --></a>
|
||
<div class="evenrow">
|
||
|
||
<div class="method-header">
|
||
<span class="method-title">static method connectLetters</span> (line <span class="line-number">123</span>)
|
||
</div>
|
||
|
||
<!-- ========== Info from phpDoc block ========= -->
|
||
<p class="short-description">Соединяет массив букв в строку</p>
|
||
<ul class="tags">
|
||
<li><span class="field">return:</span> строка</li>
|
||
</ul>
|
||
|
||
<div class="method-signature">
|
||
static
|
||
<span class="method-result">string</span>
|
||
<span class="method-name">
|
||
connectLetters
|
||
</span>
|
||
(<span class="var-type">array</span> <span class="var-name">$lettersArr</span>)
|
||
</div>
|
||
|
||
<ul class="parameters">
|
||
<li>
|
||
<span class="var-type">array</span>
|
||
<span class="var-name">$lettersArr</span><span class="var-description">: массив букв</span> </li>
|
||
</ul>
|
||
|
||
|
||
</div>
|
||
<a name="methodexplode" id="explode"><!-- --></a>
|
||
<div class="oddrow">
|
||
|
||
<div class="method-header">
|
||
<span class="method-title">static method explode</span> (line <span class="line-number">134</span>)
|
||
</div>
|
||
|
||
<!-- ========== Info from phpDoc block ========= -->
|
||
<p class="short-description">Разбивает строку на части использую шаблон</p>
|
||
<ul class="tags">
|
||
<li><span class="field">return:</span> разбитый массив</li>
|
||
</ul>
|
||
|
||
<div class="method-signature">
|
||
static
|
||
<span class="method-result">array</span>
|
||
<span class="method-name">
|
||
explode
|
||
</span>
|
||
(<span class="var-type">string</span> <span class="var-name">$pattern</span>, <span class="var-type">string</span> <span class="var-name">$string</span>)
|
||
</div>
|
||
|
||
<ul class="parameters">
|
||
<li>
|
||
<span class="var-type">string</span>
|
||
<span class="var-name">$pattern</span><span class="var-description">: шаблон разбития</span> </li>
|
||
<li>
|
||
<span class="var-type">string</span>
|
||
<span class="var-name">$string</span><span class="var-description">: строка, которую нужно разбить</span> </li>
|
||
</ul>
|
||
|
||
|
||
</div>
|
||
<a name="methodisLowerCase" id="isLowerCase"><!-- --></a>
|
||
<div class="evenrow">
|
||
|
||
<div class="method-header">
|
||
<span class="method-title">static method isLowerCase</span> (line <span class="line-number">87</span>)
|
||
</div>
|
||
|
||
<!-- ========== Info from phpDoc block ========= -->
|
||
<p class="short-description">Проверяет в нижнем ли регистре находится строка</p>
|
||
<ul class="tags">
|
||
<li><span class="field">return:</span> в нижнем ли регистре строка</li>
|
||
</ul>
|
||
|
||
<div class="method-signature">
|
||
static
|
||
<span class="method-result">bool</span>
|
||
<span class="method-name">
|
||
isLowerCase
|
||
</span>
|
||
(<span class="var-type">string</span> <span class="var-name">$phrase</span>)
|
||
</div>
|
||
|
||
<ul class="parameters">
|
||
<li>
|
||
<span class="var-type">string</span>
|
||
<span class="var-name">$phrase</span><span class="var-description">: строка</span> </li>
|
||
</ul>
|
||
|
||
|
||
</div>
|
||
<a name="methodisUpperCase" id="isUpperCase"><!-- --></a>
|
||
<div class="oddrow">
|
||
|
||
<div class="method-header">
|
||
<span class="method-title">static method isUpperCase</span> (line <span class="line-number">97</span>)
|
||
</div>
|
||
|
||
<!-- ========== Info from phpDoc block ========= -->
|
||
<p class="short-description">Проверяет в верхнем ли регистре находится строка</p>
|
||
<ul class="tags">
|
||
<li><span class="field">return:</span> в верхнем ли регистре строка</li>
|
||
</ul>
|
||
|
||
<div class="method-signature">
|
||
static
|
||
<span class="method-result">bool</span>
|
||
<span class="method-name">
|
||
isUpperCase
|
||
</span>
|
||
(<span class="var-type">string</span> <span class="var-name">$phrase</span>)
|
||
</div>
|
||
|
||
<ul class="parameters">
|
||
<li>
|
||
<span class="var-type">string</span>
|
||
<span class="var-name">$phrase</span><span class="var-description">: строка</span> </li>
|
||
</ul>
|
||
|
||
|
||
</div>
|
||
<a name="methodsplitLetters" id="splitLetters"><!-- --></a>
|
||
<div class="evenrow">
|
||
|
||
<div class="method-header">
|
||
<span class="method-title">static method splitLetters</span> (line <span class="line-number">107</span>)
|
||
</div>
|
||
|
||
<!-- ========== Info from phpDoc block ========= -->
|
||
<p class="short-description">Превращает строку в массив букв</p>
|
||
<ul class="tags">
|
||
<li><span class="field">return:</span> массив букв</li>
|
||
</ul>
|
||
|
||
<div class="method-signature">
|
||
static
|
||
<span class="method-result">array</span>
|
||
<span class="method-name">
|
||
splitLetters
|
||
</span>
|
||
(<span class="var-type">string</span> <span class="var-name">$phrase</span>)
|
||
</div>
|
||
|
||
<ul class="parameters">
|
||
<li>
|
||
<span class="var-type">string</span>
|
||
<span class="var-name">$phrase</span><span class="var-description">: строка</span> </li>
|
||
</ul>
|
||
|
||
|
||
</div>
|
||
<a name="methodstrlen" id="strlen"><!-- --></a>
|
||
<div class="oddrow">
|
||
|
||
<div class="method-header">
|
||
<span class="method-title">static method strlen</span> (line <span class="line-number">45</span>)
|
||
</div>
|
||
|
||
<!-- ========== Info from phpDoc block ========= -->
|
||
<p class="short-description">Определение длины строки</p>
|
||
<ul class="tags">
|
||
<li><span class="field">return:</span> длина строки</li>
|
||
</ul>
|
||
|
||
<div class="method-signature">
|
||
static
|
||
<span class="method-result">int</span>
|
||
<span class="method-name">
|
||
strlen
|
||
</span>
|
||
(<span class="var-type">string</span> <span class="var-name">$str</span>)
|
||
</div>
|
||
|
||
<ul class="parameters">
|
||
<li>
|
||
<span class="var-type">string</span>
|
||
<span class="var-name">$str</span><span class="var-description">: строка</span> </li>
|
||
</ul>
|
||
|
||
|
||
</div>
|
||
<a name="methodstrpos" id="strpos"><!-- --></a>
|
||
<div class="evenrow">
|
||
|
||
<div class="method-header">
|
||
<span class="method-title">static method strpos</span> (line <span class="line-number">35</span>)
|
||
</div>
|
||
|
||
<!-- ========== Info from phpDoc block ========= -->
|
||
<p class="short-description">Поиск подстроки в строке</p>
|
||
<ul class="tags">
|
||
<li><span class="field">return:</span> позиция подстроки в строке</li>
|
||
</ul>
|
||
|
||
<div class="method-signature">
|
||
static
|
||
<span class="method-result">int</span>
|
||
<span class="method-name">
|
||
strpos
|
||
</span>
|
||
(<span class="var-type">string</span> <span class="var-name">$haystack</span>, <span class="var-type">string</span> <span class="var-name">$needle</span>, [<span class="var-type">int</span> <span class="var-name">$offset</span> = <span class="var-default">0</span>])
|
||
</div>
|
||
|
||
<ul class="parameters">
|
||
<li>
|
||
<span class="var-type">string</span>
|
||
<span class="var-name">$haystack</span><span class="var-description">: строка, в которой искать</span> </li>
|
||
<li>
|
||
<span class="var-type">string</span>
|
||
<span class="var-name">$needle</span><span class="var-description">: подстрока, которую нужно найти</span> </li>
|
||
<li>
|
||
<span class="var-type">int</span>
|
||
<span class="var-name">$offset</span><span class="var-description">: начало поиска</span> </li>
|
||
</ul>
|
||
|
||
|
||
</div>
|
||
<a name="methodstrrpos" id="strrpos"><!-- --></a>
|
||
<div class="oddrow">
|
||
|
||
<div class="method-header">
|
||
<span class="method-title">static method strrpos</span> (line <span class="line-number">77</span>)
|
||
</div>
|
||
|
||
<!-- ========== Info from phpDoc block ========= -->
|
||
<p class="short-description">Поиск подстроки в строке справа</p>
|
||
<ul class="tags">
|
||
<li><span class="field">return:</span> позиция подстроки в строке</li>
|
||
</ul>
|
||
|
||
<div class="method-signature">
|
||
static
|
||
<span class="method-result">int</span>
|
||
<span class="method-name">
|
||
strrpos
|
||
</span>
|
||
(<span class="var-type">string</span> <span class="var-name">$haystack</span>, <span class="var-type">string</span> <span class="var-name">$needle</span>, [<span class="var-type">int</span> <span class="var-name">$offset</span> = <span class="var-default">null</span>])
|
||
</div>
|
||
|
||
<ul class="parameters">
|
||
<li>
|
||
<span class="var-type">string</span>
|
||
<span class="var-name">$haystack</span><span class="var-description">: строка, в которой искать</span> </li>
|
||
<li>
|
||
<span class="var-type">string</span>
|
||
<span class="var-name">$needle</span><span class="var-description">: подстрока, которую нужно найти</span> </li>
|
||
<li>
|
||
<span class="var-type">int</span>
|
||
<span class="var-name">$offset</span><span class="var-description">: начало поиска</span> </li>
|
||
</ul>
|
||
|
||
|
||
</div>
|
||
<a name="methodstrtolower" id="strtolower"><!-- --></a>
|
||
<div class="evenrow">
|
||
|
||
<div class="method-header">
|
||
<span class="method-title">static method strtolower</span> (line <span class="line-number">55</span>)
|
||
</div>
|
||
|
||
<!-- ========== Info from phpDoc block ========= -->
|
||
<p class="short-description">Переводит строку в нижний регистр</p>
|
||
<ul class="tags">
|
||
<li><span class="field">return:</span> строка в нижнем регистре</li>
|
||
</ul>
|
||
|
||
<div class="method-signature">
|
||
static
|
||
<span class="method-result">string</span>
|
||
<span class="method-name">
|
||
strtolower
|
||
</span>
|
||
(<span class="var-type">string</span> <span class="var-name">$str</span>)
|
||
</div>
|
||
|
||
<ul class="parameters">
|
||
<li>
|
||
<span class="var-type">string</span>
|
||
<span class="var-name">$str</span><span class="var-description">: строка</span> </li>
|
||
</ul>
|
||
|
||
|
||
</div>
|
||
<a name="methodstrtoupper" id="strtoupper"><!-- --></a>
|
||
<div class="oddrow">
|
||
|
||
<div class="method-header">
|
||
<span class="method-title">static method strtoupper</span> (line <span class="line-number">65</span>)
|
||
</div>
|
||
|
||
<!-- ========== Info from phpDoc block ========= -->
|
||
<p class="short-description">Переводит строку в верхний регистр</p>
|
||
<ul class="tags">
|
||
<li><span class="field">return:</span> строка в верхнем регистре</li>
|
||
</ul>
|
||
|
||
<div class="method-signature">
|
||
static
|
||
<span class="method-result">string</span>
|
||
<span class="method-name">
|
||
strtoupper
|
||
</span>
|
||
(<span class="var-type">string</span> <span class="var-name">$str</span>)
|
||
</div>
|
||
|
||
<ul class="parameters">
|
||
<li>
|
||
<span class="var-type">string</span>
|
||
<span class="var-name">$str</span><span class="var-description">: строка</span> </li>
|
||
</ul>
|
||
|
||
|
||
</div>
|
||
<a name="methodsubstr" id="substr"><!-- --></a>
|
||
<div class="evenrow">
|
||
|
||
<div class="method-header">
|
||
<span class="method-title">static method substr</span> (line <span class="line-number">23</span>)
|
||
</div>
|
||
|
||
<!-- ========== Info from phpDoc block ========= -->
|
||
<p class="short-description">Получить подстроку из строки</p>
|
||
<ul class="tags">
|
||
<li><span class="field">return:</span> подстрока</li>
|
||
</ul>
|
||
|
||
<div class="method-signature">
|
||
static
|
||
<span class="method-result">int</span>
|
||
<span class="method-name">
|
||
substr
|
||
</span>
|
||
(<span class="var-type">string</span> <span class="var-name">$str</span>, <span class="var-type">int</span> <span class="var-name">$start</span>, [<span class="var-type">int</span> <span class="var-name">$length</span> = <span class="var-default">null</span>])
|
||
</div>
|
||
|
||
<ul class="parameters">
|
||
<li>
|
||
<span class="var-type">string</span>
|
||
<span class="var-name">$str</span><span class="var-description">: строка</span> </li>
|
||
<li>
|
||
<span class="var-type">int</span>
|
||
<span class="var-name">$start</span><span class="var-description">: начало подстроки</span> </li>
|
||
<li>
|
||
<span class="var-type">int</span>
|
||
<span class="var-name">$length</span><span class="var-description">: длина подстроки</span> </li>
|
||
</ul>
|
||
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<p class="notes" id="credit">
|
||
Documentation generated on Wed, 06 Jul 2011 13:46:18 +0300 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
|
||
</p>
|
||
</div></body>
|
||
</html> |