class String
Public Instance Methods
to_wide_string()
click to toggle source
Convert a regular string to a wide character string. This does not modify the receiver.
# File lib/win32/process/helper.rb, line 4 def to_wide_string (self + 0.chr).encode('UTF-16LE') end
to_wide_string!()
click to toggle source
Convert a regular string to a wide character string. This modifies the receiver.
# File lib/win32/process/helper.rb, line 10 def to_wide_string! replace((self + 0.chr).encode('UTF-16LE')) end