Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/nwrfc/nwrfclib.rb
Overview
Enhancement to the String class to put string values into double-null terminated UTF16 little endian encoded strings as required by the NW RFC SDK function, which should work on Linux and Windows (and maybe other architectures, though the plan is not to support them) String.class_evalIconv.conv(“UTF-16LE”, “UTF8”, self+“0”) }
Instance Method Summary collapse
Instance Method Details
#cU ⇒ Object
53 54 55 |
# File 'lib/nwrfc/nwrfclib.rb', line 53 def cU NWRFCLib::Cutf8_to_utf16le.iconv(self+"\0") end |
#uC ⇒ Object
57 58 59 |
# File 'lib/nwrfc/nwrfclib.rb', line 57 def uC NWRFCLib::Cutf16le_to_utf8.iconv(self).strip end |