aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/utf
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/utf')
-rw-r--r--phpBB/includes/utf/utf_normalizer.php15
-rw-r--r--phpBB/includes/utf/utf_tools.php12
2 files changed, 17 insertions, 10 deletions
diff --git a/phpBB/includes/utf/utf_normalizer.php b/phpBB/includes/utf/utf_normalizer.php
index 4c705b05cb..a77952499a 100644
--- a/phpBB/includes/utf/utf_normalizer.php
+++ b/phpBB/includes/utf/utf_normalizer.php
@@ -1,14 +1,21 @@
<?php
-/**
+/**
*
* @package utf
-* @version $Id$
-* @copyright (c) 2005 phpBB Group
-* @license http://opensource.org/licenses/gpl-license.php GNU Public License
+* @version $Id$
+* @copyright (c) 2005 phpBB Group
+* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
+*/
+if (!defined('IN_PHPBB'))
+{
+ exit;
+}
+
+/**
* Some Unicode characters encoded in UTF-8
*
* Preserved for compatibility
diff --git a/phpBB/includes/utf/utf_tools.php b/phpBB/includes/utf/utf_tools.php
index a3499062fe..77971f7e68 100644
--- a/phpBB/includes/utf/utf_tools.php
+++ b/phpBB/includes/utf/utf_tools.php
@@ -240,7 +240,7 @@ else
/**
* UTF-8 aware alternative to strrpos
* Find position of last occurrence of a char in a string
- *
+ *
* @author Harry Fuecks
* @param string $str haystack
* @param string $needle needle
@@ -329,7 +329,7 @@ else
* such as Latin, Greek, Cyrillic, Armenian and archaic Georgian - it does
* not exist in the Chinese alphabet, for example. See Unicode Standard
* Annex #21: Case Mappings
- *
+ *
* @param string
* @return string string in lowercase
*/
@@ -394,7 +394,7 @@ else
* such as Latin, Greek, Cyrillic, Armenian and archaic Georgian - it does
* not exist in the Chinese alphabet, for example. See Unicode Standard
* Annex #21: Case Mappings
- *
+ *
* @param string
* @return string string in uppercase
*/
@@ -614,7 +614,7 @@ else
/**
* UTF-8 aware alternative to str_split
* Convert a string to an array
-*
+*
* @author Harry Fuecks
* @param string $str UTF-8 encoded
* @param int $split_len number to characters to split string by
@@ -640,7 +640,7 @@ function utf8_str_split($str, $split_len = 1)
/**
* UTF-8 aware alternative to strspn
* Find length of initial segment matching the mask
-*
+*
* @author Harry Fuecks
*/
function utf8_strspn($str, $mask, $start = null, $length = null)
@@ -663,7 +663,7 @@ function utf8_strspn($str, $mask, $start = null, $length = null)
/**
* UTF-8 aware alternative to ucfirst
* Make a string's first character uppercase
-*
+*
* @author Harry Fuecks
* @param string
* @return string with first character as upper case (if applicable)