Miscallenous helper functions collected into a class.
| Helpers.hx | Miscallenous helper functions collected into a class. |
| XmlNN | Tuple for xml namespace and local name |
| Variables | |
| ns | Namespace |
| ln | Local name |
| Helpers | Helper class with static functions used across the entire application. |
| text helper methods | |
| expandTabs | Replaces all tabs with 3 spaces. |
| tabbed | Adds three spaces to the beginning of each line of the parameter string. |
| onelined | Removes newlines from the string. |
| Namespaced Xml helper methods | |
| getXmlNN | Returns the namespace and localname of an Xml.Element |
| elementsLocalNamed | Returns all elements with the given localname. |
| elementsNamespaced | Returns all elements in a given namespace |
| Import modules helper methods | |
| generateClass | Generates a class definition with the given superclass. |
| getIdForHashSymbolCheck | Returns a character ID for the given data hash and tag type and checks the availability of the given symbol class. |
| Version string related functions | |
| stripBugfixVersion | Removes the bugfix version from version string if present. |
Helper class with static functions used across the entire application.
| text helper methods | |
| expandTabs | Replaces all tabs with 3 spaces. |
| tabbed | Adds three spaces to the beginning of each line of the parameter string. |
| onelined | Removes newlines from the string. |
| Namespaced Xml helper methods | |
| getXmlNN | Returns the namespace and localname of an Xml.Element |
| elementsLocalNamed | Returns all elements with the given localname. |
| elementsNamespaced | Returns all elements in a given namespace |
| Import modules helper methods | |
| generateClass | Generates a class definition with the given superclass. |
| getIdForHashSymbolCheck | Returns a character ID for the given data hash and tag type and checks the availability of the given symbol class. |
| Version string related functions | |
| stripBugfixVersion | Removes the bugfix version from version string if present. |
public static function getXmlNN( x : Xml ) : XmlNN
Returns the namespace and localname of an Xml.Element
| x | the Xml element |
The corresponding XmlNN tuple
public static function getIdForHashSymbolCheck( md5: String, tagId: Int, idReg: IdRegistry, ?symbolReg: SymbolRegistry, ?symbol: String ): HashIdSymCheckResult
Returns a character ID for the given data hash and tag type and checks the availability of the given symbol class.
| md5 | the MD5 sum of the asset |
| tagId | the SWF tag ID |
| idReg | the IdRegistry instance |
| symbolReg | the SymbolRegistry instance |
| symbol | the AS3 class name |
The character ID, wrapped in HashIdSymCheckResult.
Namespace
ns : String
Local name
ln : String
Adds three spaces to the beginning of each line of the parameter string.
public static function tabbed( s : String ) : String
Removes newlines from the string.
inline public static function onelined( s : String ) : String
Returns the namespace and localname of an Xml.Element
public static function getXmlNN( x : Xml ) : XmlNN
Returns all elements with the given localname.
public static function elementsLocalNamed( x : Xml, lname : String )
Returns all elements in a given namespace
public static function elementsNamespaced( x : Xml, ns : String )
Generates a class definition with the given superclass.
public static function generateClass( as3Reg: AS3Registry, className: String, superClassName: String )
Returns a character ID for the given data hash and tag type and checks the availability of the given symbol class.
public static function getIdForHashSymbolCheck( md5: String, tagId: Int, idReg: IdRegistry, ?symbolReg: SymbolRegistry, ?symbol: String ): HashIdSymCheckResult
Removes the bugfix version from version string if present.
public static function stripBugfixVersion( version: String ): String