mmstring

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MMString

type MMString struct {
	*vector.Vector[rune]
}

MMString is a manually manged string that is basically a *Vector[rune] and contains all the methods of a vector plus additional helper functions

func From

func From(input string) *MMString

From creates a new manually managed string, And initialize it with a go string

func New

func New() *MMString

New create a new manually managed string

func (*MMString) AppendGoString

func (s *MMString) AppendGoString(input string)

AppendGoString appends go string to manually managed string

func (*MMString) Free

func (s *MMString) Free()

Free frees MMString

func (*MMString) GetGoString

func (s *MMString) GetGoString() string

GetGoString returns go string from manually managed string. CAUTION: You also have to free the MMString

func (*MMString) Hash added in v0.7.0

func (s *MMString) Hash() uint32

Hash implements Hashable interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL