String utility methods used in SVG import. It is an AS3 rewrite of classDefs_mm.as which was based on classDefs.as.
| StringUtils | String utility methods used in SVG import. |
| Functions | |
| replaceAll | Florian Kruesch’s String method replace. |
| shrinkSequencesOf | Timothee Groleau’s String method shrinkSequencesOf. |
public static function replaceAll( sSource: String, sFind: String, sReplace: String ):String
Florian Kruesch’s String method replace.
Search for a string of one or multiple characters, replace with another string of one or multiple chars.
| sFind | string to find |
| sReplace | string to replace found string with |
Florian Kruesch’s String method replace.
public static function replaceAll( sSource: String, sFind: String, sReplace: String ):String
Timothee Groleau’s String method shrinkSequencesOf.
public static function shrinkSequencesOf( str: String, ch: String ):String // String.prototype.shrinkSequencesOf = function(ch:String):String