text

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package text implements Cypher string operations in Unicode code points.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func At

func At(value string, index int) (string, bool)

At returns the Unicode character at index. Negative indexes count from the end, matching Cypher list/string indexing semantics.

func From

func From(value string, start int) string

From returns the suffix beginning at the zero-based Unicode code-point index.

func Left

func Left(value string, length int) string

Left returns at most length Unicode code points from the start of value.

func Length

func Length(value string) int

Length returns the number of Unicode code points in value.

func Right(value string, length int) string

Right returns at most length Unicode code points from the end of value.

func Substring

func Substring(value string, start, length int) string

Substring returns at most length Unicode code points beginning at start. Negative starts retain the evaluators' historical clamp-to-zero behavior; callers that expose Cypher argument errors validate before this helper.

Types

This section is empty.

Jump to

Keyboard shortcuts

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