In the previous article, Remove Duplicate Chars from a String, I posted a way to remove duplicates characters from a string and make it of unique chars. So to make myself clear I’ll give the following example:
Source string: “aabbccaaddee”
Should be: “abcde”
(note the underlined characters).
In my previous article TLP has commented and created a better method. […]
Popularity: 50%
This post is about how to remove duplicate characters from a string. And what I mean is that I want to make every char unique.
Ex: “aabbbcccaadddee” will become “abcde“.
In “short words” the following steps are taken:
Split the string to an array (source array)
Create a second empty array which will retain the unique values
Sort the […]
Popularity: 76%
I don’t know if you got in trouble when working with xmls but recently I found a bug (or a feature). Some differences when using toString() and/or xmlToString().
Take a look a the following code:
public var test1:XML = new XML("
<permissions></permissions>
");
public var test2:XML =
<permissions></permissions>;
public var test3:XML = new XML("
<permissions>
<test1>test</test1>
</permissions>");
public var test4:XML =
<permissions>
[…]
Popularity: 25%