package core:unicode/utf8/utf8string

⌘K
Ctrl+K
or
/

    Overview

    A convenient and efficient way to index strings by Unicode code point (rune) rather than byte.

    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,
    }
    Related Procedures With Parameters

    Constants

    This section is empty.

    Variables

    This section is empty.

    Procedures

    at ¶

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

    init ¶

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

    is_ascii ¶

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

    len ¶

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

    slice ¶

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

    to_string ¶

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

    Procedure Groups

    This section is empty.

    Source Files

    Generation Information

    Generated with odin version dev-2025-10 (vendor "odin") Windows_amd64 @ 2025-10-26 21:11:53.662073000 +0000 UTC