package haxe.iterators
Available on all platforms
This iterator can be used to iterate across strings in a cross-platform way. It handles surrogate pairs on platforms that require it. On each iteration, it returns the next character code.
Note that this has different semantics than a standard for-loop over the String's length due to the fact that it deals with surrogate pairs.
staticinlineunicodeIterator(s:String):StringIteratorUnicode
Convenience function which can be used as a static extension.
inlinenew(s:String)
Create a new StringIteratorUnicode
over String s
.
inlinehasNext():Bool
Iterator.hasNext
inlinenext():Int
Iterator.next
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/haxe/iterators/StringIteratorUnicode.html