mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
This commit is contained in:
parent
decea1b188
commit
ce8f62146b
7 changed files with 14 additions and 9 deletions
|
@ -73,7 +73,7 @@ pub fn get_rune(s string, index int) rune {
|
|||
return res
|
||||
}
|
||||
|
||||
// raw_index - get the raw character from the string by the given index value.
|
||||
// raw_index - get the raw unicode character from the UTF-8 string by the given index value as UTF-8 string.
|
||||
// example: utf8.raw_index('我是V Lang', 1) => '是'
|
||||
pub fn raw_index(s string, index int) string {
|
||||
mut r := []rune{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue