StringUtils

String utility methods used in SVG import.  It is an AS3 rewrite of classDefs_mm.as which was based on classDefs.as.

Summary
StringUtilsString utility methods used in SVG import.
Functions
replaceAllFlorian Kruesch’s String method replace.
shrinkSequencesOfTimothee Groleau’s String method shrinkSequencesOf.

Functions

replaceAll

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.

Parameters

sFindstring to find
sReplacestring to replace found string with

shrinkSequencesOf

public static function shrinkSequencesOf(
   str: String,
   ch: String
):String // String.prototype.shrinkSequencesOf = function(ch:String):String

Timothee Groleau’s String method shrinkSequencesOf.

Shrink all sequences of a given character in a string to one.

Parameters

cha single character
public static function replaceAll(sSource: String,
sFind: String,
sReplace: String):String
Florian Kruesch’s String method replace.
public static function shrinkSequencesOf(
   str: String,
   ch: String
):String // String.prototype.shrinkSequencesOf = function(ch:String):String
Timothee Groleau’s String method shrinkSequencesOf.
Close