Since not all platforms guarantee that String always uses UTF-8 encoding, you can use this cross-platform API to perform operations on such strings.

Constructor

new(?size:Int)

Allocate a new Utf8 buffer using an optional bytes size.

Static methods

staticcompare(a:String, b:String):Int

Compare two UTF8 strings, character by character.