Skip to content

Commit

Permalink
skillfully avoid Flash8 quirk
Browse files Browse the repository at this point in the history
  • Loading branch information
Simn committed Feb 5, 2013
1 parent c5bdf40 commit 01f4ccf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions std/StringTools.hx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class StringTools {
If [end] is null, the result is unspecified.
If [end] is the empty String "", the result is true.
If [end] is the empty String "", the result is true.
**/
public static #if (cs || java) inline #end function endsWith( s : String, end : String ) : Bool {
#if java
Expand All @@ -161,7 +161,7 @@ class StringTools {
**/
public static function isSpace( s : String, pos : Int ) : Bool {
var c = s.charCodeAt( pos );
return (c >= 9 && c <= 13) || c == 32;
return (c > 8 && c < 14) || c == 32;
}

/**
Expand Down Expand Up @@ -250,7 +250,7 @@ class StringTools {
s = c + s;
}
return s;
}
}

/**
Appends [c] to [s] until [s].length is at least [l].
Expand Down

0 comments on commit 01f4ccf

Please sign in to comment.