2
2
/**
3
3
* Part of the Joomla Framework String Package
4
4
*
5
- * @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
5
+ * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
6
6
* @license GNU General Public License version 2 or later; see LICENSE
7
7
*/
8
8
@@ -130,7 +130,7 @@ public static function is_ascii($str)
130
130
*
131
131
* @return integer Unicode ordinal for the character
132
132
*
133
- * @link https://secure .php.net/ord
133
+ * @link https://www .php.net/ord
134
134
* @since 1.4.0
135
135
*/
136
136
public static function ord ($ chr )
@@ -147,9 +147,9 @@ public static function ord($chr)
147
147
* @param string $search String being searched for
148
148
* @param integer $offset Optional, specifies the position from which the search should be performed
149
149
*
150
- * @return mixed Number of characters before the first match or FALSE on failure
150
+ * @return integer|boolean Number of characters before the first match or FALSE on failure
151
151
*
152
- * @link https://secure .php.net/strpos
152
+ * @link https://www .php.net/strpos
153
153
* @since 1.3.0
154
154
*/
155
155
public static function strpos ($ str , $ search , $ offset = false )
@@ -171,9 +171,9 @@ public static function strpos($str, $search, $offset = false)
171
171
* @param string $search String being searched for.
172
172
* @param integer $offset Offset from the left of the string.
173
173
*
174
- * @return mixed Number of characters before the last match or false on failure
174
+ * @return integer|boolean Number of characters before the last match or false on failure
175
175
*
176
- * @link https://secure .php.net/strrpos
176
+ * @link https://www .php.net/strrpos
177
177
* @since 1.3.0
178
178
*/
179
179
public static function strrpos ($ str , $ search , $ offset = 0 )
@@ -190,9 +190,9 @@ public static function strrpos($str, $search, $offset = 0)
190
190
* @param integer $offset Number of UTF-8 characters offset (from left)
191
191
* @param integer $length Optional length in UTF-8 characters from offset
192
192
*
193
- * @return mixed string or FALSE if failure
193
+ * @return string|boolean
194
194
*
195
- * @link https://secure .php.net/substr
195
+ * @link https://www .php.net/substr
196
196
* @since 1.3.0
197
197
*/
198
198
public static function substr ($ str , $ offset , $ length = false )
@@ -215,9 +215,9 @@ public static function substr($str, $offset, $length = false)
215
215
*
216
216
* @param string $str String being processed
217
217
*
218
- * @return mixed Either string in lowercase or FALSE is UTF-8 invalid
218
+ * @return string|boolean Either string in lowercase or FALSE is UTF-8 invalid
219
219
*
220
- * @link https://secure .php.net/strtolower
220
+ * @link https://www .php.net/strtolower
221
221
* @since 1.3.0
222
222
*/
223
223
public static function strtolower ($ str )
@@ -235,9 +235,9 @@ public static function strtolower($str)
235
235
*
236
236
* @param string $str String being processed
237
237
*
238
- * @return mixed Either string in uppercase or FALSE is UTF-8 invalid
238
+ * @return string|boolean Either string in uppercase or FALSE is UTF-8 invalid
239
239
*
240
- * @link https://secure .php.net/strtoupper
240
+ * @link https://www .php.net/strtoupper
241
241
* @since 1.3.0
242
242
*/
243
243
public static function strtoupper ($ str )
@@ -254,7 +254,7 @@ public static function strtoupper($str)
254
254
*
255
255
* @return integer Number of UTF-8 characters in string.
256
256
*
257
- * @link https://secure .php.net/strlen
257
+ * @link https://www .php.net/strlen
258
258
* @since 1.3.0
259
259
*/
260
260
public static function strlen ($ str )
@@ -274,7 +274,7 @@ public static function strlen($str)
274
274
*
275
275
* @return string UTF-8 String
276
276
*
277
- * @link https://secure .php.net/str_ireplace
277
+ * @link https://www .php.net/str_ireplace
278
278
* @since 1.3.0
279
279
*/
280
280
public static function str_ireplace ($ search , $ replace , $ str , $ count = null )
@@ -300,7 +300,7 @@ public static function str_ireplace($search, $replace, $str, $count = null)
300
300
*
301
301
* @return string
302
302
*
303
- * @link https://secure .php.net/str_pad
303
+ * @link https://www .php.net/str_pad
304
304
* @since 1.4.0
305
305
*/
306
306
public static function str_pad ($ input , $ length , $ padStr = ' ' , $ type = STR_PAD_RIGHT )
@@ -318,7 +318,7 @@ public static function str_pad($input, $length, $padStr = ' ', $type = STR_PAD_R
318
318
*
319
319
* @return array
320
320
*
321
- * @link https://secure .php.net/str_split
321
+ * @link https://www .php.net/str_split
322
322
* @since 1.3.0
323
323
*/
324
324
public static function str_split ($ str , $ splitLen = 1 )
@@ -337,9 +337,9 @@ public static function str_split($str, $splitLen = 1)
337
337
*
338
338
* @return integer < 0 if str1 is less than str2; > 0 if str1 is greater than str2, and 0 if they are equal.
339
339
*
340
- * @link https://secure .php.net/strcasecmp
341
- * @link https://secure .php.net/strcoll
342
- * @link https://secure .php.net/setlocale
340
+ * @link https://www .php.net/strcasecmp
341
+ * @link https://www .php.net/strcoll
342
+ * @link https://www .php.net/setlocale
343
343
* @since 1.3.0
344
344
*/
345
345
public static function strcasecmp ($ str1 , $ str2 , $ locale = false )
@@ -394,9 +394,9 @@ public static function strcasecmp($str1, $str2, $locale = false)
394
394
*
395
395
* @return integer < 0 if str1 is less than str2; > 0 if str1 is greater than str2, and 0 if they are equal.
396
396
*
397
- * @link https://secure .php.net/strcmp
398
- * @link https://secure .php.net/strcoll
399
- * @link https://secure .php.net/setlocale
397
+ * @link https://www .php.net/strcmp
398
+ * @link https://www .php.net/strcoll
399
+ * @link https://www .php.net/setlocale
400
400
* @since 1.3.0
401
401
*/
402
402
public static function strcmp ($ str1 , $ str2 , $ locale = false )
@@ -449,7 +449,7 @@ public static function strcmp($str1, $str2, $locale = false)
449
449
*
450
450
* @return integer The length of the initial segment of str1 which does not contain any of the characters in str2
451
451
*
452
- * @link https://secure .php.net/strcspn
452
+ * @link https://www .php.net/strcspn
453
453
* @since 1.3.0
454
454
*/
455
455
public static function strcspn ($ str , $ mask , $ start = null , $ length = null )
@@ -478,7 +478,7 @@ public static function strcspn($str, $mask, $start = null, $length = null)
478
478
*
479
479
* @return string the sub string
480
480
*
481
- * @link https://secure .php.net/stristr
481
+ * @link https://www .php.net/stristr
482
482
* @since 1.3.0
483
483
*/
484
484
public static function stristr ($ str , $ search )
@@ -495,7 +495,7 @@ public static function stristr($str, $search)
495
495
*
496
496
* @return string The string in reverse character order
497
497
*
498
- * @link https://secure .php.net/strrev
498
+ * @link https://www .php.net/strrev
499
499
* @since 1.3.0
500
500
*/
501
501
public static function strrev ($ str )
@@ -515,7 +515,7 @@ public static function strrev($str)
515
515
*
516
516
* @return integer
517
517
*
518
- * @link https://secure .php.net/strspn
518
+ * @link https://www .php.net/strspn
519
519
* @since 1.3.0
520
520
*/
521
521
public static function strspn ($ str , $ mask , $ start = null , $ length = null )
@@ -545,7 +545,7 @@ public static function strspn($str, $mask, $start = null, $length = null)
545
545
*
546
546
* @return string
547
547
*
548
- * @link https://secure .php.net/substr_replace
548
+ * @link https://www .php.net/substr_replace
549
549
* @since 1.3.0
550
550
*/
551
551
public static function substr_replace ($ str , $ repl , $ start , $ length = null )
@@ -570,7 +570,7 @@ public static function substr_replace($str, $repl, $start, $length = null)
570
570
*
571
571
* @return string The trimmed string
572
572
*
573
- * @link https://secure .php.net/ltrim
573
+ * @link https://www .php.net/ltrim
574
574
* @since 1.3.0
575
575
*/
576
576
public static function ltrim ($ str , $ charlist = false )
@@ -599,7 +599,7 @@ public static function ltrim($str, $charlist = false)
599
599
*
600
600
* @return string The trimmed string
601
601
*
602
- * @link https://secure .php.net/rtrim
602
+ * @link https://www .php.net/rtrim
603
603
* @since 1.3.0
604
604
*/
605
605
public static function rtrim ($ str , $ charlist = false )
@@ -628,7 +628,7 @@ public static function rtrim($str, $charlist = false)
628
628
*
629
629
* @return string The trimmed string
630
630
*
631
- * @link https://secure .php.net/trim
631
+ * @link https://www .php.net/trim
632
632
* @since 1.3.0
633
633
*/
634
634
public static function trim ($ str , $ charlist = false )
@@ -659,7 +659,7 @@ public static function trim($str, $charlist = false)
659
659
* else consider the string of words separated by the delimiter, apply the ucfirst to each words
660
660
* and return the string with the new delimiter
661
661
*
662
- * @link https://secure .php.net/ucfirst
662
+ * @link https://www .php.net/ucfirst
663
663
* @since 1.3.0
664
664
*/
665
665
public static function ucfirst ($ str , $ delimiter = null , $ newDelimiter = null )
@@ -686,7 +686,7 @@ public static function ucfirst($str, $delimiter = null, $newDelimiter = null)
686
686
*
687
687
* @return string String with first char of each word uppercase
688
688
*
689
- * @link https://secure .php.net/ucwords
689
+ * @link https://www .php.net/ucwords
690
690
* @since 1.3.0
691
691
*/
692
692
public static function ucwords ($ str )
@@ -755,7 +755,7 @@ public static function valid($str)
755
755
* @return boolean TRUE if string is valid UTF-8
756
756
*
757
757
* @see StringHelper::valid
758
- * @link https://secure .php.net/manual/en/reference.pcre.pattern.modifiers.php#54805
758
+ * @link https://www .php.net/manual/en/reference.pcre.pattern.modifiers.php#54805
759
759
* @since 1.3.0
760
760
*/
761
761
public static function compliant ($ str )
0 commit comments