Documentation
¶
Overview ¶
Package string exposes JVM-faithful java.lang.String equivalents for code running on glojure. Each symbol is published in up to three ways:
- as a Go package-level value (used when gloat AOT-compiles a Clojure call site to a direct Go reference such as `compatstring.Format`);
- through glojure's pkgmap under both `String.foo` and the fully qualified `github.com/glojurelang/glojure/pkg/javacompat/string.Foo` names (used by the REPL and any dynamic resolution path); and
- for instance-style methods (`(.toUpperCase s)`, `(.length s)`, etc.) via lang.RegisterStringMethod, which the FieldOrMethod dispatch path consults when the receiver is a Go string.
Where the JVM signature is overloaded by arity (indexOf(ch) / indexOf(ch, from) / indexOf(sub) / indexOf(sub, from)), the bridge dispatches polymorphically at call time. Char-typed args accept either int32 (UTF-16 unit) or lang.Char.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyValueOf ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.