String  version
 All Classes Functions Variables
Static Public Member Functions | Static Public Attributes | List of all members
String Class Reference

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

Library Class.

Member Function Documentation

static function String::AIList ( list  )
inlinestatic

Shows item and value foreach record of AIList into string.

Parameters
listan instance of AIAbstractList
Returns
string
static function String::AirportType ( at  )
inlinestatic

Get airport type as string.

Parameters
atAirport type
Returns
string of airport type
static function String::Date ( date  ,
date_format  ,
separator   
)
inlinestatic

Convert date to it string representation.

Parameters
dateDate integer to convert
date_formatOne of DateStr Format
Returns
string of date
static function String::Join ( arr  ,
separator   
)
inlinestatic

Join a string by separator.

Parameters
arrArray of string to join
separatorthe separator to insert between string
Returns
a string that has been joined
static function String::PlaneType ( pt  )
inlinestatic

Get plane type as string.

Parameters
ptPlane type
Returns
string of plane type
static function String::RailDirection ( dir  )
inlinestatic

Get rail direction as string.

Parameters
dirRail Direction
Returns
String of rail direction
static function String::RailTrackType ( rt  )
inlinestatic

Get rail track type as string.

Parameters
rtRail type
Returns
string of rail track type
static function String::Repeat ( sentence  ,
count   
)
inlinestatic

Repeat a string.

Parameters
sentenceString to repeat
countnumber to repeat
Returns
repeated string
static function String::RoadTrackType ( rt  )
inlinestatic

Get road track type as string.

Parameters
rtRoad type
Returns
string of road track type
static function String::Split ( str  ,
separator   
)
inlinestatic

Split a string by separator.

Parameters
strThe string to split
separatorthe separator to split by
Returns
Array of string that has been splitted
static function String::StationType ( st  )
inlinestatic

Get station type as string.

Parameters
ststation type
Returns
String of station type
static function String::Table ( table  )
inlinestatic

Shows key and value foreach record of table into string.

Parameters
tableTable to show
Returns
string
static function String::Tile ( idx  )
inlinestatic

Get tile co-ordinat as string.

Parameters
idxtile index
Returns
string in the form of [x,y]
static function String::TownEffect ( te  )
inlinestatic

Get town effect as string.

Parameters
teTown effect
Returns
String of Town effect
static function String::VehicleState ( vs  )
inlinestatic

Get vehicle state as string.

Parameters
vsVehicle state
Returns
String of vehicle state
static function String::VehicleType ( vt  )
inlinestatic

Get vehicle type as string.

Parameters
vtVehicle type
Returns
string of vehicle type

The documentation for this class was generated from the following file: