Emojicode Documentation 1.0 beta 2

Class πŸ” 

Mutable sequence of characters (β€œstring builder”).

Initializers

πŸ†•

 πŸ†• 

Creates an empty πŸ”  with an initial capacity of 16.

πŸ†•β–ΆοΈπŸ”‘

 πŸ†•β–ΆοΈπŸ”‘  string πŸ”‘ 

Creates a πŸ”  with the contents of the provided string and a capacity of the length of the string plus 16.

πŸ†•

 πŸ†•  capacity πŸ”’ 

Creates an empty πŸ”  with the provided capacity.

Methods

πŸ»β—οΈ

❗️ 🐻  string πŸ”‘ 

Adds the contents of string to this πŸ” .

πŸΊβ—οΈ

☣️ ❗️ 🐺  strdata 🧠  offset πŸ”’  bytes πŸ”’ 

Copies bytes bytes from offset of strdata to the end of the string. The data must be valid UTF-8 data or the behavior is undefined.

πŸ»πŸ”ΈπŸ’§β—οΈ

☣️ ❗️ πŸ»πŸ”ΈπŸ’§  byte πŸ’§ 

Appends a single byte to the end of the string. The caller is reponsible for ensuring that the resulting string is still valid UTF-8 or undefined behavior is caused.

πŸ»πŸ”ΈπŸ”£β—οΈ

☣️ ❗️ πŸ»πŸ”ΈπŸ”£  codepoint πŸ”’ ➑️ πŸ‘Œ

Appends a single codepoint to the end of the string. If the codepoint is not valid, the method returns πŸ‘Ž and the string builder is not modified.

πŸ§ β—οΈ

❗️ 🧠 ➑️ 🧠

Returns the memory area representing the data of this πŸ” .

πŸ“β—οΈ

❗️ πŸ“ ➑️ πŸ”’

Returns the number of UTF-8 bytes required to represent the content of the instance.

πŸ”‘β—οΈ

❗️ πŸ”‘ ➑️ πŸ”‘

Returns the value of this this πŸ”  as a πŸ”‘.