Library Class.  
 More...
Static Public Member Functions | 
| static function  | Split (str, separator) | 
|   | Split a string by separator.  
  | 
| static function  | Join (arr, separator) | 
|   | Join a string by separator.  
  | 
| static function  | Repeat (sentence, count) | 
|   | Repeat a string.  
  | 
| static function  | PlaneType (pt) | 
|   | Get plane type as string.  
  | 
| static function  | AirportType (at) | 
|   | Get airport type as string.  
  | 
| static function  | VehicleType (vt) | 
|   | Get vehicle type as string.  
  | 
| static function  | RoadTrackType (rt) | 
|   | Get road track type as string.  
  | 
| static function  | RailTrackType (rt) | 
|   | Get rail track type as string.  
  | 
| static function  | RailDirection (dir) | 
|   | Get rail direction as string.  
  | 
| static function  | StationType (st) | 
|   | Get station type as string.  
  | 
| static function  | TownEffect (te) | 
|   | Get town effect as string.  
  | 
| static function  | Tile (idx) | 
|   | Get tile co-ordinat as string.  
  | 
| static function  | VehicleState (vs) | 
|   | Get vehicle state as string.  
  | 
| static function  | Date (date, date_format, separator) | 
|   | Convert date to it string representation.  
  | 
| static function  | Table (table) | 
|   | Shows key and value foreach record of table into string.  
  | 
| static function  | AIList (list) | 
|   | Shows item and value foreach record of AIList into string.  
  | 
Static Public Attributes | 
| 
static  | DateYMD = DateStr.DateYMD | 
|   | Year - Month - Day. 
  | 
| 
static  | DateMDY = DateStr.DateMDY | 
|   | Month - Day - Year. 
  | 
| 
static  | DateDMY = DateStr.DateDMY | 
|   | Day - Month - Year. 
  | 
Detailed Description
Member Function Documentation
  
  
      
        
          | static function String::AIList  | 
          ( | 
          list  | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Shows item and value foreach record of AIList into string. 
- Parameters
 - 
  
    | list | an instance of AIAbstractList  | 
  
   
- Returns
 - string 
 
 
 
  
  
      
        
          | static function String::AirportType  | 
          ( | 
          at  | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Get airport type as string. 
- Parameters
 - 
  
  
 
- Returns
 - string of airport type 
 
 
 
  
  
      
        
          | static function String::Date  | 
          ( | 
          date  | 
          ,  | 
         
        
           | 
           | 
          date_format  | 
          ,  | 
         
        
           | 
           | 
          separator  | 
            | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Convert date to it string representation. 
- Parameters
 - 
  
    | date | Date integer to convert  | 
    | date_format | One of DateStr Format  | 
  
   
- Returns
 - string of date 
 
 
 
  
  
      
        
          | static function String::Join  | 
          ( | 
          arr  | 
          ,  | 
         
        
           | 
           | 
          separator  | 
            | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Join a string by separator. 
- Parameters
 - 
  
    | arr | Array of string to join  | 
    | separator | the separator to insert between string  | 
  
   
- Returns
 - a string that has been joined 
 
 
 
  
  
      
        
          | static function String::PlaneType  | 
          ( | 
          pt  | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Get plane type as string. 
- Parameters
 - 
  
  
 
- Returns
 - string of plane type 
 
 
 
  
  
      
        
          | static function String::RailDirection  | 
          ( | 
          dir  | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Get rail direction as string. 
- Parameters
 - 
  
  
 
- Returns
 - String of rail direction 
 
 
 
  
  
      
        
          | static function String::RailTrackType  | 
          ( | 
          rt  | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Get rail track type as string. 
- Parameters
 - 
  
  
 
- Returns
 - string of rail track type 
 
 
 
  
  
      
        
          | static function String::Repeat  | 
          ( | 
          sentence  | 
          ,  | 
         
        
           | 
           | 
          count  | 
            | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Repeat a string. 
- Parameters
 - 
  
    | sentence | String to repeat  | 
    | count | number to repeat  | 
  
   
- Returns
 - repeated string 
 
 
 
  
  
      
        
          | static function String::RoadTrackType  | 
          ( | 
          rt  | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Get road track type as string. 
- Parameters
 - 
  
  
 
- Returns
 - string of road track type 
 
 
 
  
  
      
        
          | static function String::Split  | 
          ( | 
          str  | 
          ,  | 
         
        
           | 
           | 
          separator  | 
            | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Split a string by separator. 
- Parameters
 - 
  
    | str | The string to split  | 
    | separator | the separator to split by  | 
  
   
- Returns
 - Array of string that has been splitted 
 
 
 
  
  
      
        
          | static function String::StationType  | 
          ( | 
          st  | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Get station type as string. 
- Parameters
 - 
  
  
 
- Returns
 - String of station type 
 
 
 
  
  
      
        
          | static function String::Table  | 
          ( | 
          table  | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Shows key and value foreach record of table into string. 
- Parameters
 - 
  
  
 
- Returns
 - string 
 
 
 
  
  
      
        
          | static function String::Tile  | 
          ( | 
          idx  | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Get tile co-ordinat as string. 
- Parameters
 - 
  
  
 
- Returns
 - string in the form of [x,y] 
 
 
 
  
  
      
        
          | static function String::TownEffect  | 
          ( | 
          te  | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Get town effect as string. 
- Parameters
 - 
  
  
 
- Returns
 - String of Town effect 
 
 
 
  
  
      
        
          | static function String::VehicleState  | 
          ( | 
          vs  | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Get vehicle state as string. 
- Parameters
 - 
  
  
 
- Returns
 - String of vehicle state 
 
 
 
  
  
      
        
          | static function String::VehicleType  | 
          ( | 
          vt  | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Get vehicle type as string. 
- Parameters
 - 
  
  
 
- Returns
 - string of vehicle type 
 
 
 
The documentation for this class was generated from the following file: