ggstd 0.1.0

Partial implementation of Go standard library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2023 The rust-ggstd authors.
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//! Package utf8 implements functions and constants to support text encoded in
//! UTF-8. It includes functions to translate between runes and UTF-8 byte sequences.
//! See <https://en.wikipedia.org/wiki/UTF-8>

mod utf8;

pub use utf8::{
    decode_rune, decode_rune_in_string, encode_rune, full_rune, rune_count, rune_len, valid_rune,
    MAX_RUNE, RUNE_ERROR, RUNE_SELF, UTFMAX,
};

#[cfg(test)]
mod utf8_test;