# File tools/mkunidata.rb, line 73 def printstr(str) return "NULL" if !str ret = "" str.each_byte do |c| if c >= 32 && c < 127 && c != 34 && c != 92 ret << c else ret << format("\\%03o", c) end end return '"' + ret + '"' end