Sha256: a4c730d07140e8b4662198e770c768a5d37eb4ebcb3c3480635f0e5e1dde006b
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 Bytes
Contents
class String # Convert a regular string to a wide character string. This does not # modify the receiver. def to_wide_string (self + 0.chr).encode('UTF-16LE') end # Convert a regular string to a wide character string. This modifies # the receiver. def to_wide_string! replace((self + 0.chr).encode('UTF-16LE')) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
win32-process-0.8.3 | lib/win32/process/helper.rb |
win32-process-0.8.2 | lib/win32/process/helper.rb |