package core:unicode/utf8/utf8string

Index

Types (1)
Constants (0)

This section is empty.

Variables (0)

This section is empty.

Procedures (6)
Procedure Groups (0)

This section is empty.

Types

String ¶

String :: struct {
	contents:   string,
	rune_count: int,
	// cached information
	non_ascii:  int,
	// index to non-ascii code points
	width:      int,
	// 0 if ascii
	byte_pos:   int,
	rune_pos:   int,
}

Constants

This section is empty.

Variables

This section is empty.

Procedures

at ¶

at :: proc "odin" (s: ^String, i: int, loc := #caller_location) -> (r: rune) {…}

init ¶

init :: proc "odin" (s: ^String, contents: string) -> ^String {…}

is_ascii ¶

is_ascii :: proc "odin" (s: ^String) -> bool {…}

len ¶

len :: proc "odin" (s: ^String) -> int {…}

slice ¶

slice :: proc "odin" (s: ^String, i, j: int, loc := #caller_location) -> string {…}

to_string ¶

to_string :: proc "odin" (s: ^String) -> string {…}

Procedure Groups

This section is empty.

Source Files

Generation Information

Generated with odin version dev-2022-12 (vendor "odin") Windows_amd64 @ 2022-12-06 21:08:55.193378200 +0000 UTC