1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vlib: remove many deprecated functions (#10972)

This commit is contained in:
shadow
2021-07-28 02:22:19 -04:00
committed by GitHub
parent 9f4431544d
commit 66bc8bc0cb
26 changed files with 1 additions and 1785 deletions

View File

@ -33,12 +33,6 @@ pub fn len(s string) int {
return count
}
// char_len calculate the length in bytes of a utf8 char
[deprecated: 'use builtin utf8_char_len']
pub fn char_len(b byte) int {
return ((0xe5000000 >> ((b >> 3) & 0x1e)) & 3) + 1
}
// get_uchar convert a unicode glyph in string[index] into a int unicode char
pub fn get_uchar(s string, index int) int {
mut res := 0