MCPcopy Create free account
hub / github.com/dop251/goja / CompareTo

Method CompareTo

string_unicode.go:498–501  ·  view source on GitHub ↗
(other String)

Source from the content-addressed store, hash-verified

496}
497
498func (s unicodeString) CompareTo(other String) int {
499 // TODO handle invalid UTF-16
500 return strings.Compare(s.String(), other.String())
501}
502
503func (s unicodeString) index(substr String, start int) int {
504 var ss []uint16

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
StringMethod · 0.65

Tested by

no test coverage detected