Class Hierarchy   Compound List   Compound Members   Related Pages  

The string utilities are defined in splay.h and provide general functions for working with Flash strings.

BOOL ConvertStringToInteger(const char *s, int *value)
Converts a string to an integer value. Returns true if it succeeds, false if it fails.

char* SkipPrefix( char* str, char* pre )
If the prefix pre is found, returns a pointer past the prefix. If not found, returns null.

BOOL StrEqual( const char* a, const char* b)
Returns true if both strings equal.

int ToInt(const char* c)
String to integer conversion.

void FreeStr(char* s)
Free's memory created with CreateStr.

char* CreateStr( const char* s)
Creates a string (alloctating memory) by copying the string passed in. Returns a pointer to the created string.

char *CreateStr( const char *s, int count)
String utility. Creates a string (alloctating memory) by copying the string passed in. Count specifies the amount of memory allocated and must be sufficient.

BOOL IsTrue( const char* )
Returns true if the string passed in a string representation of a non zero number, the word "true" or the word "yes".


Version 1.0 of the Flash 4 Porting SDK                        Middlesoft, Inc.