[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/phputf8/mbstring/ -> core.php (summary)

(no description)

Version: $Id: core.php 10381 2008-06-01 03:35:53Z pasamio $
File Size: 90 lines (3 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  utf8_strpos()
  utf8_strrpos()
  utf8_substr()

Functions
Functions that are not part of a class:

utf8_strpos($str, $search, $offset = FALSE)   X-Ref
Assumes mbstring internal encoding is set to UTF-8
Wrapper around mb_strpos
Find position of first occurrence of a string

param: string haystack
param: string needle (you should validate this with utf8_is_valid)
param: integer offset in characters (from left)
return: mixed integer position or FALSE on failure

utf8_strrpos($str, $search, $offset = FALSE)   X-Ref
Assumes mbstring internal encoding is set to UTF-8
Wrapper around mb_strrpos
Find position of last occurrence of a char in a string

param: string haystack
param: string needle (you should validate this with utf8_is_valid)
param: integer (optional) offset (from left)
return: mixed integer position or FALSE on failure

utf8_substr($str, $offset, $length = FALSE)   X-Ref
Assumes mbstring internal encoding is set to UTF-8
Wrapper around mb_substr
Return part of a string given character offset (and optionally length)

param: string
param: integer number of UTF-8 characters offset (from left)
param: integer (optional) length in UTF-8 characters from offset
return: mixed string or FALSE if failure



Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1