Macaulay2 » Documentation
Packages » Macaulay2Doc :: utf8substring
next | previous | forward | backward | up | index | toc

utf8substring -- extract part of a utf8 string

Synopsis

Description

Returns the substring of s that starts at index i and has n characters, both measured in utf8 characters.

i1 : s = "π ≈ 3.14159";
i2 : utf8substring(s, 4, 4)

o2 = 3.14

See also

For the programmer

The object utf8substring is a compiled function.