Module godotstrings

Types

GodotString* {.
byref
.} = object data: array[sizeof(int), byte]
  Source Edit

Procs

proc len*(self: GodotString): cint {.
inline
.}
Returns the length of string in bytes if it is represented as UTF-8.   Source Edit
proc cstring*(self: GodotString): cstring {.
importc: "godot_string_c_str"
.}
  Source Edit
proc `==`*(self, b: GodotString): bool {.
importc: "godot_string_operator_equal"
.}
  Source Edit
proc `<`*(self, b: GodotString): bool {.
importc: "godot_string_operator_less"
.}
  Source Edit
proc `&`*(self, b: GodotString): GodotString {.
importc: "godot_string_operator_plus"
.}
  Source Edit
proc deinit*(self: var GodotString) {.
importc: "godot_string_destroy"
.}
  Source Edit
proc `$`*(self: GodotString): string
Converts the GodotString into Nim string   Source Edit
proc toGodotString*(s: string): GodotString {.
inline
.}
Converts the Nim string into GodotString   Source Edit
proc toGodotString*(s: cstring): GodotString {.
inline
.}
Converts the cstring into GodotString   Source Edit