Public Methods
 FunctionDefined By
  
AVM-only strcat(s1:String, ... s):String
Concatenate two or more strings.
C.string
  
String scanning operation.
C.string
  
Compare two strings.
C.string
  
String comparison using collating information.
C.string
  
AVM-only strerror(errnum:int):String
Accepts an error number argument errnum and returns the corresponding message string.
C.string
  
Find length of string.
C.string
  
Returns a string describing file modes.
C.string
  
AVM-only strncat(s1:String, s2:String = "", n:uint = 0):String
Concatenate a string with part of another.
C.string
  
AVM-only strncmp(s1:String, s2:String = "", n:uint = 0):int
Compare part of two strings.
C.string
  
Returns an octal string describing file modes.
C.string
  
Scan a string for a byte.
C.string
  
String scanning operation.
C.string
  
Get length of a substring.
C.string
  
Find a substring.
C.string
  
AVM-only strtok(s1:String, s2:String = ""):Array
Split string into tokens.
C.string
Function detail
AVM-only strcat()function
public function strcat(s1:String, ... s):String

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Concatenate two or more strings.

Parameters

s1:String
 
... s

Returns
String
AVM-only strchr()function 
public function strchr(s:String, c:int):int

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

String scanning operation.

Parameters

s:String
 
c:int

Returns
int
AVM-only strcmp()function 
public function strcmp(s1:String, s2:String):int

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Compare two strings.

Parameters

s1:String
 
s2:String

Returns
int
AVM-only strcoll()function 
public function strcoll(s1:String, s2:String):int

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

String comparison using collating information.

Parameters

s1:String
 
s2:String

Returns
int
AVM-only strerror()function 
public function strerror(errnum:int):String

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Accepts an error number argument errnum and returns the corresponding message string.

Parameters

errnum:int

Returns
String
AVM-only strlen()function 
public function strlen(str:String):uint

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Find length of string.

Parameters

str:String

Returns
uint
AVM-only strmode()function 
public function strmode(mode:int):String

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Returns a string describing file modes.

Note: not part of the C standard lib, but part of GNU libc. Non-standard but we added it.

Parameters

mode:int

Returns
String

Example
Usage
     var info:status = new status();
     var result:int = stat( "test.bin", info );
     
     trace( "mode = " + strmode( info.st_mode );
     
     // will output
     // mode = -rwxr-xr-x
     
AVM-only strncat()function 
public function strncat(s1:String, s2:String = "", n:uint = 0):String

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Concatenate a string with part of another.

Parameters

s1:String
 
s2:String (default = "")
 
n:uint (default = 0)

Returns
String
AVM-only strncmp()function 
public function strncmp(s1:String, s2:String = "", n:uint = 0):int

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Compare part of two strings.

Parameters

s1:String
 
s2:String (default = "")
 
n:uint (default = 0)

Returns
int
AVM-only stroctal()function 
public function stroctal(mode:int):String

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Returns an octal string describing file modes.

Note: not part of the C standard lib. Non-standard but we added it.

Parameters

mode:int

Returns
String

Example
Usage
     // get the current umask
     var mask:int = getumask(); //022
     
     trace( " " + stroctal( ACCESSPERMS ) );
     trace( "-" + stroctal( mask ) );
     trace( " ---" );
     trace( " " + stroctal( ACCESSPERMS & ~mask ) );
     
     // will output
     //  777
     // -022
     //  ---
     //  755
     
AVM-only strpbrk()function 
public function strpbrk(s1:String, s2:String):Array

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Scan a string for a byte.

Parameters

s1:String
 
s2:String

Returns
Array
AVM-only strrchr()function 
public function strrchr(s:String, c:int):int

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

String scanning operation.

Parameters

s:String
 
c:int

Returns
int
AVM-only strspn()function 
public function strspn(s1:String, s2:String):int

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Get length of a substring.

Parameters

s1:String
 
s2:String

Returns
int
AVM-only strstr()function 
public function strstr(s1:String, s2:String):int

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Find a substring.

Parameters

s1:String
 
s2:String

Returns
int
AVM-only strtok()function 
public function strtok(s1:String, s2:String = ""):Array

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Split string into tokens.

Parameters

s1:String
 
s2:String (default = "")

Returns
Array