Method | Description | |
---|---|---|
ParseDateTimeLength ( string input, int defaultLen ) : int |
Like PHP's strtotime() function, attempts to parse a GNU date/time into number of seconds
|
|
getRawDocument ( string url ) : string |
Gets the raw source code for a URL
|
|
replaceStrMax ( string input, char oldChar, char newChar, int maxChars ) : string |
Replaces up to the maximum number of old characters with new characters in a string
|
|
stringSplit ( string input, int chunkLen ) : |
Like PHP's str_split() function, splits a string into an array of chunks
|
|
wikiEncode ( string input ) : string |
Encodes a string for use with wiki URLs
|
public static ParseDateTimeLength ( string input, int defaultLen ) : int | ||
input | string | String representation of date/time length |
defaultLen | int | |
return | int |
public static getRawDocument ( string url ) : string | ||
url | string | Location of the resource |
return | string |
public static replaceStrMax ( string input, char oldChar, char newChar, int maxChars ) : string | ||
input | string | The string to work on |
oldChar | char | The character to replace |
newChar | char | The character to insert |
maxChars | int | The maximum number of instances to replace |
return | string |
public static stringSplit ( string input, int chunkLen ) : |
||
input | string | String to split |
chunkLen | int | Maximum length of each chunk |
return |
public static wikiEncode ( string input ) : string | ||
input | string | |
return | string |