[ Index ]
 

Code source de phpMyAdmin 2.10.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/libraries/ -> string.lib.php (sommaire)

(pas de description)

Poids: 384 lignes (11 kb)
Inclus ou requis: 2 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 15 fonctions

  PMA_strlen()
  PMA_substr()
  PMA_STR_strInStr()
  PMA_STR_charIsEscaped()
  PMA_STR_numberInRangeInclusive()
  PMA_STR_isDigit()
  PMA_STR_isHexDigit()
  PMA_STR_isUpper()
  PMA_STR_isLower()
  PMA_STR_isAlpha()
  PMA_STR_isAlnum()
  PMA_STR_isSpace()
  PMA_STR_isAccented()
  PMA_STR_isSqlIdentifier()
  PMA_STR_binarySearchInArr()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

PMA_strlen($string)   X-Ref
Returns length of string depending on current charset.

author: nijel
param: string   string to count
return: int      string length

PMA_substr($string, $start, $length = 2147483647)   X-Ref
Returns substring from string, works depending on current charset.

author: nijel
param: string   string to count
param: int      start of substring
param: int      length of substring
return: int      substring

PMA_STR_strInStr($needle, $haystack)   X-Ref
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.

param: string   string to search for
param: string   string to search in
return: boolean  whether the needle is in the haystack or not

PMA_STR_charIsEscaped($string, $pos, $start = 0)   X-Ref
Checks if a given character position in the string is escaped or not

param: string   string to check for
param: integer  the character to check for
param: integer  starting position in the string
return: boolean  whether the character is escaped or not

PMA_STR_numberInRangeInclusive($num, $lower, $upper)   X-Ref
Checks if a number is in a range

param: integer  number to check for
param: integer  lower bound
param: integer  upper bound
return: boolean  whether the number is in the range or not

PMA_STR_isDigit($c)   X-Ref
Checks if a character is a digit

param: string   character to check for
return: boolean  whether the character is a digit or not

PMA_STR_isHexDigit($c)   X-Ref
Checks if a character is an hexadecimal digit

param: string   character to check for
return: boolean  whether the character is an hexadecimal digit or not

PMA_STR_isUpper($c)   X-Ref
Checks if a character is an upper alphabetic one

param: string   character to check for
return: boolean  whether the character is an upper alphabetic one or

PMA_STR_isLower($c)   X-Ref
Checks if a character is a lower alphabetic one

param: string   character to check for
return: boolean  whether the character is a lower alphabetic one or

PMA_STR_isAlpha($c)   X-Ref
Checks if a character is an alphabetic one

param: string   character to check for
return: boolean  whether the character is an alphabetic one or not

PMA_STR_isAlnum($c)   X-Ref
Checks if a character is an alphanumeric one

param: string   character to check for
return: boolean  whether the character is an alphanumeric one or not

PMA_STR_isSpace($c)   X-Ref
Checks if a character is a space one

param: string   character to check for
return: boolean  whether the character is a space one or not

PMA_STR_isAccented($c)   X-Ref
Checks if a character is an accented character

param: string   character to check for
return: boolean  whether the character is an accented one or not

PMA_STR_isSqlIdentifier($c, $dot_is_valid = FALSE)   X-Ref
Checks if a character is an SQL identifier

param: string   character to check for
param: boolean  whether the dot character is valid or not
return: boolean  whether the character is an SQL identifier or not

PMA_STR_binarySearchInArr($str, $arr, $arrsize)   X-Ref
Binary search of a value in a sorted array

param: string   string to search for
param: array    sorted array to search into
param: integer  size of sorted array to search into
return: boolean  whether the string has been found or not



Généré le : Mon Nov 26 15:18:20 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics