Support Joomla!

Packages

Package: utf8

License

Content on this site is copyright © 2005 - 2008 Open Source Matters Inc and can be used in accordance with the Joomla! Electronic Documentation License. Some parts of this website may be subject to other licenses.

File/phputf8/native/core.php

Description
Constants
UTF8_CORE = TRUE (line 12)

Define UTF8_CORE as required

Functions
utf8_strpos (line 31)

UTF-8 aware alternative to strpos

Find position of first occurrence of a string Note: This will get alot slower if offset is used Note: requires utf8_strlen amd utf8_substr to be loaded

mixed utf8_strpos (string $str, string $needle, [integer $offset = NULL])
  • string $str: haystack
  • string $needle: needle (you should validate this with utf8_is_valid)
  • integer $offset: offset in characters (from left)
utf8_strrpos (line 75)

UTF-8 aware alternative to strrpos

Find position of last occurrence of a char in a string Note: This will get alot slower if offset is used Note: requires utf8_substr and utf8_strlen to be loaded

mixed utf8_strrpos (string $str, string $needle, [integer $offset = NULL])
  • string $str: haystack
  • string $needle: needle (you should validate this with utf8_is_valid)
  • integer $offset: (optional) offset (from left)
utf8_substr (line 120)

UTF-8 aware alternative to substr

Return part of a string given character offset (and optionally length) Note: supports use of negative offsets and lengths but will be slower when doing so

  • return: string or FALSE if failure
mixed utf8_substr (string $str, integer $offset, [integer $length = NULL])
  • string $str
  • integer $offset: number of UTF-8 characters offset (from left)
  • integer $length: (optional) length in UTF-8 characters from offset

Documentation generated on Sat, 14 Nov 2009 11:11:56 +0000 by phpDocumentor 1.3.1