Source File
index.go
Belonging Package
github.com/sergi/go-diff/diffmatchpatch
package diffmatchpatchtype index uint32const runeSkipStart = 0xd800const runeSkipEnd = 0xdfff + 1const runeMax = 0x110000 // next invalid code pointfunc stringToIndex( string) []index {:= []rune():= make([]index, len())for , := range {if < runeSkipEnd {[] = index()} else {[] = index() - (runeSkipEnd - runeSkipStart)}}return}func indexesToString( []index) string {:= make([]rune, len())for , := range {if < runeSkipStart {[] = rune()} else {[] = rune( + (runeSkipEnd - runeSkipStart))}}return string()}
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |