Browse Source

document platform inconsistencies on "".split (closes #2009)

Simon Krajewski 12 years ago
parent
commit
1ebbc19ccb
1 changed files with 3 additions and 0 deletions
  1. 3 0
      std/String.hx

+ 3 - 0
std/String.hx

@@ -104,6 +104,9 @@ extern class String {
 	/**
 	/**
 		Splits `this` String at each occurence of `delimiter`.
 		Splits `this` String at each occurence of `delimiter`.
 		
 		
+		If `this` String is the empty String "", the result is not consistent
+		across targets and may either be `[]` (on Js, Cpp) or `[""]`.
+		
 		If `delimiter` is the empty String "", `this` String is split into an
 		If `delimiter` is the empty String "", `this` String is split into an
 		Array of `this.length` elements, where the elements correspond to the
 		Array of `this.length` elements, where the elements correspond to the
 		characters of `this` String.
 		characters of `this` String.