string.go 308 B

123456789101112131415161718
  1. package gdnative
  2. /*
  3. #include <gdnative/string.h>
  4. #include "gdnative.gen.h"
  5. */
  6. import "C"
  7. // NewStringWithWideString creates a new String with given contents
  8. func NewStringWithWideString(str string) String {
  9. return String(str)
  10. }
  11. // NewString retruns an empty String
  12. func NewString() String {
  13. return ""
  14. }