Size: 552
Comment:
|
← Revision 3 as of 2023-01-08 05:56:16 ⇥
Size: 1667
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
The '''`strings`''' package is used for operating on `string` data. |
|
Line 9: | Line 11: |
== Unicode == A `string` is an immutable container of `uint8` bytes. They are meant to represent text encoded in UTF-8, but not every byte is guaranteed to be valid Unicode. There are only a few instances where strings are implicitly encoded: * in `for i, r := range s`, the `r` is a Unicode rune * in `rs := []rune(s)`, `rs` is a string of Unicode runes In these cases, all invalid Unicode bytes are converted to `U+FFFD` (the replacement character). |
== Clone == ---- == Compare == ---- == Contains == ---- == ContainsAny == ---- == ContainsRune == ---- == Count == ---- == Cut == ---- == EqualFold == ---- == Fields == ---- == FieldsFunc == ---- == HasPrefix == ---- == HasSuffix == ---- == Index == ---- == IndexAny == ---- == IndexByte == ---- == IndexFunc == ---- == IndexRune == ---- == Join == ---- == LastIndex == ---- == LastIndexAny == ---- == LastIndexByte == ---- == LastIndexFunc == ---- == Map == ---- == Repeat == ---- == Replace == ---- == ReplaceAll == ---- == Split == ---- == SplitAfter == ---- == SplitAfterN == ---- == SplitN == ---- == Title == ---- == ToLower == ---- == ToLowerSpecial == ---- == ToTitle == ---- == ToTitleSpecial == ---- == ToUpper == ---- == ToUpperSpecial == ---- == ToValidUTF8 == ---- == Trim == ---- == TrimFunc == ---- == TrimLeft == ---- == TrimLeftFunc == ---- == TrimPrefix == ---- == TrimRight == ---- == TrimRightFunc == ---- == TrimSpace == ---- == TrimSuffix == ---- == Builder == ---- == Reader == ---- == Replacer == |
Go Strings
The strings package is used for operating on string data.
Contents
-
Go Strings
- Clone
- Compare
- Contains
- ContainsAny
- ContainsRune
- Count
- Cut
- EqualFold
- Fields
- FieldsFunc
- HasPrefix
- HasSuffix
- Index
- IndexAny
- IndexByte
- IndexFunc
- IndexRune
- Join
- LastIndex
- LastIndexAny
- LastIndexByte
- LastIndexFunc
- Map
- Repeat
- Replace
- ReplaceAll
- Split
- SplitAfter
- SplitAfterN
- SplitN
- Title
- ToLower
- ToLowerSpecial
- ToTitle
- ToTitleSpecial
- ToUpper
- ToUpperSpecial
- ToValidUTF8
- Trim
- TrimFunc
- TrimLeft
- TrimLeftFunc
- TrimPrefix
- TrimRight
- TrimRightFunc
- TrimSpace
- TrimSuffix
- Builder
- Reader
- Replacer
Clone
Compare
Contains
ContainsAny
ContainsRune
Count
Cut
EqualFold
Fields
FieldsFunc
HasPrefix
HasSuffix
Index
IndexAny
IndexByte
IndexFunc
IndexRune
Join
LastIndex
LastIndexAny
LastIndexByte
LastIndexFunc
Map
Repeat
Replace
ReplaceAll
Split
SplitAfter
SplitAfterN
SplitN
Title
ToLower
ToLowerSpecial
ToTitle
ToTitleSpecial
ToUpper
ToUpperSpecial
ToValidUTF8
Trim
TrimFunc
TrimLeft
TrimLeftFunc
TrimPrefix
TrimRight
TrimRightFunc
TrimSpace
TrimSuffix
Builder
Reader