Method: Fox.fxdecodeStringData

Defined in:
lib/fox16/core.rb

.fxdecodeStringData(data) ⇒ Object

The drag-and-drop data used for clipboard strings (i.e. when the drag type is FXWindow.stringType) is either a null-terminated string (for Microsoft Windows) or a non-null terminated string (for X11). Use this method to convert string data from the clipboard back into a Ruby string.



390
391
392
393
394
395
396
# File 'lib/fox16/core.rb', line 390

def Fox.fxdecodeStringData(data)
  if /cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM
    data.chop
  else
    data
  end
end