mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: remove ustring (#10630)
This commit is contained in:
@ -33,11 +33,6 @@ pub fn len(s string) int {
|
||||
return count
|
||||
}
|
||||
|
||||
// u_len return the length as number of unicode chars from a ustring
|
||||
pub fn u_len(s ustring) int {
|
||||
return len(s.s)
|
||||
}
|
||||
|
||||
// char_len calculate the length in bytes of a utf8 char
|
||||
[deprecated: 'use builtin utf8_char_len']
|
||||
pub fn char_len(b byte) int {
|
||||
@ -134,23 +129,11 @@ pub fn to_upper(s string) string {
|
||||
return up_low(s, true)
|
||||
}
|
||||
|
||||
// u_to_upper return an uppercase string from a ustring
|
||||
pub fn u_to_upper(s ustring) ustring {
|
||||
tmp := up_low(s.s, true)
|
||||
return tmp.ustring()
|
||||
}
|
||||
|
||||
// to_lower return an lowercase string from a string
|
||||
pub fn to_lower(s string) string {
|
||||
return up_low(s, false)
|
||||
}
|
||||
|
||||
// u_to_lower return an lowercase string from a ustring
|
||||
pub fn u_to_lower(s ustring) ustring {
|
||||
tmp := up_low(s.s, false)
|
||||
return tmp.ustring()
|
||||
}
|
||||
|
||||
/*
|
||||
Punctuation functions
|
||||
|
||||
|
Reference in New Issue
Block a user