Login   Register  
PHP Classes
elePHPant
Icontem

File: character.inc.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jonas Eriksson  >  BowML  >  character.inc.php  >  Download  
File: character.inc.php
Role: Auxiliary script
Content type: text/plain
Description: Character functions, soon to be deprecated!!
Class: BowML
Parse and create HTML or other markup documents
Author: By
Last change:
Date: 2004-07-29 10:00
Size: 794 bytes
 

Contents

Class file image Download
<?php

function is_punctuation($pCharacter)
{
    return 
in_array($pCharacter, array(",""."";"":""!""'""´""`"));
}

function 
is_operator($pCharacter)
{
    return 
in_array($pCharacter, array("=""!""?""-""+""*""/""%""&"));
}

function 
is_currency($pCharacter)
{
    return 
in_array($pCharacter, array("£""$""€""¥"));
}

function 
is_otherCharacter($pCharacter)
{
    return 
in_array($pCharacter, array("\"""#""¤""""("")""^""~""¨",));
}

function 
is_figurative($pCharacter)
{
    print(
"is_figurative($pCharacter)");
    return 
in_array(strtolower($pCharacter), array
        (
"a""b""c""d""e""f""g""h""i""j""k",
        
"l""m""n""o""p""q""r""s""t""u""v"
        
"w""x""y""z""å""ä""ö"));
}


?>