| 1 | <?php  | 
            ||
| 8 | class Delimiter { | 
            ||
| 9 | /**  | 
            ||
| 10 | * Character to escape delimiters with  | 
            ||
| 11 | * We're using an uncommon escape character as to not clash with stripslashes  | 
            ||
| 12 | *  | 
            ||
| 13 | * @var string  | 
            ||
| 14 | */  | 
            ||
| 15 | protected static $escape_character = '!';  | 
            ||
| 16 | |||
| 17 | /**  | 
            ||
| 18 | * Quote a delimiter in the passed value  | 
            ||
| 19 | *  | 
            ||
| 20 | * @param string $value  | 
            ||
| 21 | * @param string $delimiter  | 
            ||
| 22 | * @return string  | 
            ||
| 23 | */  | 
            ||
| 24 | 	public static function quote( $value, $delimiter ) { | 
            ||
| 27 | |||
| 28 | /**  | 
            ||
| 29 | * Unquote a delimiter in the passed value  | 
            ||
| 30 | *  | 
            ||
| 31 | * @param string $value  | 
            ||
| 32 | * @param string $delimiter  | 
            ||
| 33 | * @return string  | 
            ||
| 34 | */  | 
            ||
| 35 | 	public static function unquote( $value, $delimiter ) { | 
            ||
| 38 | |||
| 39 | /**  | 
            ||
| 40 | * Split the passed value by a delimiter  | 
            ||
| 41 | *  | 
            ||
| 42 | * @param string $value  | 
            ||
| 43 | * @param string $delimiter  | 
            ||
| 44 | * @return array  | 
            ||
| 45 | */  | 
            ||
| 46 | 	public static function split( $value, $delimiter ) { | 
            ||
| 49 | }  | 
            ||
| 50 |