Skip to content

Commit b8f55b6

Browse files
chore(release): 1.0.2 [skip ci]
## [1.0.2](v1.0.1...v1.0.2) (2024-03-22) ### Bug Fixes * **unicodeconverter.php & converterfactory.php:** detection of Unicode Chars Improved ([c41fa0a](c41fa0a))
1 parent c41fa0a commit b8f55b6

File tree

4 files changed

+73
-4
lines changed

4 files changed

+73
-4
lines changed

HISTORY.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [1.0.2](https://github.com/centralnicgroup-opensource/rtldev-middleware-php-idna-translator/compare/v1.0.1...v1.0.2) (2024-03-22)
2+
3+
4+
### Bug Fixes
5+
6+
* **unicodeconverter.php & converterfactory.php:** detection of Unicode Chars Improved ([c41fa0a](https://github.com/centralnicgroup-opensource/rtldev-middleware-php-idna-translator/commit/c41fa0a439c63243487b9c1b4e75650745e82e26))
7+
18
## [1.0.1](https://github.com/centralnicgroup-opensource/rtldev-middleware-php-idna-translator/compare/v1.0.0...v1.0.1) (2024-03-22)
29

310

docs/classes/CNIC-IDNA-Converter-UnicodeConverter.html

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ <h3 id="toc">
154154
</dt>
155155
<dd>Check if the keyword is in Unicode format.</dd>
156156

157+
<dt class="phpdocumentor-table-of-contents__entry -method -public">
158+
<a href="classes/CNIC-IDNA-Converter-UnicodeConverter.html#method_containsUnicodeCharacters">containsUnicodeCharacters()</a>
159+
<span>
160+
&nbsp;: bool </span>
161+
</dt>
162+
<dd>Check if a string contains Unicode characters represented by escape sequences.</dd>
163+
157164
<dt class="phpdocumentor-table-of-contents__entry -method -public">
158165
<a href="classes/CNIC-IDNA-Converter-UnicodeConverter.html#method_convert">convert()</a>
159166
<span>
@@ -227,6 +234,56 @@ <h5 class="phpdocumentor-return-value__heading">Return values</h5>
227234
</section>
228235

229236

237+
</article>
238+
<article
239+
class="phpdocumentor-element
240+
-method
241+
-public
242+
-static "
243+
>
244+
<h4 class="phpdocumentor-element__name" id="method_containsUnicodeCharacters">
245+
containsUnicodeCharacters()
246+
<a href="classes/CNIC-IDNA-Converter-UnicodeConverter.html#method_containsUnicodeCharacters" class="headerlink"><i class="fas fa-link"></i></a>
247+
</h4>
248+
<aside class="phpdocumentor-element-found-in">
249+
<abbr class="phpdocumentor-element-found-in__file" title="src/IDNA/Converter/UnicodeConverter.php"><a href="files/src-idna-converter-unicodeconverter.html"><abbr title="src/IDNA/Converter/UnicodeConverter.php">UnicodeConverter.php</abbr></a></abbr>
250+
:
251+
<span class="phpdocumentor-element-found-in__line">53</span>
252+
253+
</aside>
254+
255+
<p class="phpdocumentor-summary">Check if a string contains Unicode characters represented by escape sequences.</p>
256+
257+
<code class="phpdocumentor-code phpdocumentor-signature ">
258+
<span class="phpdocumentor-signature__visibility">public</span>
259+
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">containsUnicodeCharacters</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
260+
261+
<section class="phpdocumentor-description"><p>Unicode characters can be represented in PHP strings using escape sequences like \uXXXX.
262+
This function checks if the input string contains any Unicode characters.</p>
263+
</section>
264+
265+
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
266+
<dl class="phpdocumentor-argument-list">
267+
<dt class="phpdocumentor-argument-list__entry">
268+
<span class="phpdocumentor-signature__argument__name">$str</span>
269+
: <span class="phpdocumentor-signature__argument__return-type">string</span>
270+
</dt>
271+
<dd class="phpdocumentor-argument-list__definition">
272+
<section class="phpdocumentor-description"><p>The input string to check.</p>
273+
</section>
274+
275+
</dd>
276+
</dl>
277+
278+
279+
280+
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
281+
<span class="phpdocumentor-signature__response_type">bool</span>
282+
&mdash;
283+
<section class="phpdocumentor-description"><p>Returns true if the string contains Unicode characters, false otherwise.</p>
284+
</section>
285+
286+
230287
</article>
231288
<article
232289
class="phpdocumentor-element
@@ -296,7 +353,7 @@ <h4 class="phpdocumentor-element__name" id="method_decode">
296353
<aside class="phpdocumentor-element-found-in">
297354
<abbr class="phpdocumentor-element-found-in__file" title="src/IDNA/Converter/UnicodeConverter.php"><a href="files/src-idna-converter-unicodeconverter.html"><abbr title="src/IDNA/Converter/UnicodeConverter.php">UnicodeConverter.php</abbr></a></abbr>
298355
:
299-
<span class="phpdocumentor-element-found-in__line">50</span>
356+
<span class="phpdocumentor-element-found-in__line">65</span>
300357

301358
</aside>
302359

docs/classes/CNIC-IDNA-Factory-ConverterFactory.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ <h4 class="phpdocumentor-element__name" id="method_toASCII">
265265
<aside class="phpdocumentor-element-found-in">
266266
<abbr class="phpdocumentor-element-found-in__file" title="src/IDNA/Factory/ConverterFactory.php"><a href="files/src-idna-factory-converterfactory.html"><abbr title="src/IDNA/Factory/ConverterFactory.php">ConverterFactory.php</abbr></a></abbr>
267267
:
268-
<span class="phpdocumentor-element-found-in__line">76</span>
268+
<span class="phpdocumentor-element-found-in__line">81</span>
269269

270270
</aside>
271271

@@ -377,7 +377,7 @@ <h4 class="phpdocumentor-element__name" id="method_transitionalProcessing">
377377
<aside class="phpdocumentor-element-found-in">
378378
<abbr class="phpdocumentor-element-found-in__file" title="src/IDNA/Factory/ConverterFactory.php"><a href="files/src-idna-factory-converterfactory.html"><abbr title="src/IDNA/Factory/ConverterFactory.php">ConverterFactory.php</abbr></a></abbr>
379379
:
380-
<span class="phpdocumentor-element-found-in__line">129</span>
380+
<span class="phpdocumentor-element-found-in__line">144</span>
381381

382382
</aside>
383383

@@ -433,7 +433,7 @@ <h4 class="phpdocumentor-element__name" id="method_handleConversion">
433433
<aside class="phpdocumentor-element-found-in">
434434
<abbr class="phpdocumentor-element-found-in__file" title="src/IDNA/Factory/ConverterFactory.php"><a href="files/src-idna-factory-converterfactory.html"><abbr title="src/IDNA/Factory/ConverterFactory.php">ConverterFactory.php</abbr></a></abbr>
435435
:
436-
<span class="phpdocumentor-element-found-in__line">106</span>
436+
<span class="phpdocumentor-element-found-in__line">111</span>
437437

438438
</aside>
439439

docs/js/searchIndex.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ Search.appendIndex(
4545
"name": "check",
4646
"summary": "Check\u0020if\u0020the\u0020keyword\u0020is\u0020in\u0020Unicode\u0020format.",
4747
"url": "classes/CNIC-IDNA-Converter-UnicodeConverter.html#method_check"
48+
}, {
49+
"fqsen": "\\CNIC\\IDNA\\Converter\\UnicodeConverter\u003A\u003AcontainsUnicodeCharacters\u0028\u0029",
50+
"name": "containsUnicodeCharacters",
51+
"summary": "Check\u0020if\u0020a\u0020string\u0020contains\u0020Unicode\u0020characters\u0020represented\u0020by\u0020escape\u0020sequences.",
52+
"url": "classes/CNIC-IDNA-Converter-UnicodeConverter.html#method_containsUnicodeCharacters"
4853
}, {
4954
"fqsen": "\\CNIC\\IDNA\\Converter\\UnicodeConverter\u003A\u003Adecode\u0028\u0029",
5055
"name": "decode",

0 commit comments

Comments
 (0)