phpDocumentor default
[ class tree: default ] [ index: default ] [ all elements ]

Procedural File: string.lib.php

Source Location: /lodel/scripts/pma/string.lib.php

Page Details
Constants
PMA_STR_LIB_INCLUDED  [line 21]

PMA_STR_LIB_INCLUDED = 1

Specialized String Functions for phpMyAdmin

Copyright 2002 Robin Johnson <robbat2@users.sourceforge.net> http://www.orbis-terrarum.net/?l=people.robbat2

Defines a set of function callbacks that have a pure C version available if the "ctype" extension is available, but otherwise have PHP versions to use (that are slower).

The SQL Parser code relies heavily on these functions.


[ Top ]


Functions
PMA_STR_binarySearchInArr  [line 302]

boolean PMA_STR_binarySearchInArr( string $str, array $arr, integer $arrsize  )

Binary search of a value in a sorted array

Parameters:
string   $str:  string to search for
array   $arr:  sorted array to search into
integer   $arrsize:  size of sorted array to search into

API Tags:
Return:  whether the string has been found or not


[ Top ]
PMA_STR_charIsEscaped  [line 64]

boolean PMA_STR_charIsEscaped( string $string, integer $pos, [integer $start = 0]  )

Checks if a given character position in the string is escaped or not

Parameters:
string   $string:  string to check for
integer   $pos:  the character to check for
integer   $start:  starting position in the string

API Tags:
Return:  whether the character is escaped or not


[ Top ]
PMA_STR_isAccented  [line 257]

boolean PMA_STR_isAccented( string $c  )

Checks if a character is an accented character

Parameters:
string   $c:  character to check for

API Tags:
Return:  whether the character is an upper alphabetic one or not
See:  PMA_STR_numberInRangeInclusive()


[ Top ]
PMA_STR_isAlnum  [line 215]

boolean PMA_STR_isAlnum( string $c  )

Checks if a character is an alphanumeric one

Parameters:
string   $c:  character to check for

API Tags:
Return:  whether the character is an alphanumeric one or not
See:  PMA_STR_isDigit()
See:  PMA_STR_isLower()
See:  PMA_STR_isUpper()


[ Top ]
PMA_STR_isAlpha  [line 198]

boolean PMA_STR_isAlpha( string $c  )

Checks if a character is an alphabetic one

Parameters:
string   $c:  character to check for

API Tags:
Return:  whether the character is an alphabetic one or not
See:  PMA_STR_isLower()
See:  PMA_STR_isUpper()


[ Top ]
PMA_STR_isDigit  [line 113]

boolean PMA_STR_isDigit( string $c  )

Checks if a character is a digit

Parameters:
string   $c:  character to check for

API Tags:
Return:  whether the character is a digit or not
See:  PMA_STR_numberInRangeInclusive()


[ Top ]
PMA_STR_isHexDigit  [line 132]

boolean PMA_STR_isHexDigit( string $c  )

Checks if a character is an hexadecimal digit

Parameters:
string   $c:  character to check for

API Tags:
Return:  whether the character is an hexadecimal digit or not
See:  PMA_STR_numberInRangeInclusive()


[ Top ]
PMA_STR_isLower  [line 178]

boolean PMA_STR_isLower( string $c  )

Checks if a character is a lower alphabetic one

Parameters:
string   $c:  character to check for

API Tags:
Return:  whether the character is a lower alphabetic one or not
See:  PMA_STR_numberInRangeInclusive()


[ Top ]
PMA_STR_isSpace  [line 230]

boolean PMA_STR_isSpace( string $c  )

Checks if a character is a space one

Parameters:
string   $c:  character to check for

API Tags:
Return:  whether the character is a space one or not
See:  PMA_STR_numberInRangeInclusive()


[ Top ]
PMA_STR_isSqlIdentifier  [line 284]

boolean PMA_STR_isSqlIdentifier( string $c, [boolean $dot_is_valid = FALSE]  )

Checks if a character is an SQL identifier

Parameters:
string   $c:  character to check for
boolean   $dot_is_valid:  whether the dot character is valid or not

API Tags:
Return:  whether the character is an SQL identifier or not
See:  PMA_STR_isAlnum()


[ Top ]
PMA_STR_isUpper  [line 158]

boolean PMA_STR_isUpper( string $c  )

Checks if a character is an upper alphabetic one

Parameters:
string   $c:  character to check for

API Tags:
Return:  whether the character is an upper alphabetic one or not
See:  PMA_STR_numberInRangeInclusive()


[ Top ]
PMA_STR_numberInRangeInclusive  [line 98]

boolean PMA_STR_numberInRangeInclusive( integer $num, integer $lower, integer $upper  )

Checks if a number is in a range

Parameters:
integer   $num:  number to check for
integer   $lower:  lower bound
integer   $upper:  upper bound

API Tags:
Return:  whether the number is in the range or not


[ Top ]
PMA_STR_strInStr  [line 47]

boolean PMA_STR_strInStr( string $needle, string $haystack  )

This checks if a string actually exists inside another string We try to do it in a PHP3-portable way.

We don't care about the position it is in.

Parameters:
string   $needle:  string to search for
string   $haystack:  string to search in

API Tags:
Return:  whether the needle is in the haystack or not


[ Top ]


Documentation generated on Wed, 29 Aug 2007 14:30:03 +0200 by phpDocumentor 1.4.0a2