src/Pure/Tools/fontforge.scala
changeset 71163 b5822f4c3fde
parent 69370 589896fe1df2
child 71601 97ccf48c2f0c
equal deleted inserted replaced
71162:4b3e1b859a22 71163:b5822f4c3fde
    22   /* concrete syntax */
    22   /* concrete syntax */
    23 
    23 
    24   def string(s: String): Script =
    24   def string(s: String): Script =
    25   {
    25   {
    26     def err(c: Char): Nothing =
    26     def err(c: Char): Nothing =
    27       error("Bad character \\u" + String.format(Locale.ROOT, "%04x", new Integer(c)) +
    27       error("Bad character \\u" + String.format(Locale.ROOT, "%04x", Integer.valueOf(c)) +
    28         " in fontforge string " + quote(s))
    28         " in fontforge string " + quote(s))
    29 
    29 
    30     val q = if (s.contains('"')) '\'' else '"'
    30     val q = if (s.contains('"')) '\'' else '"'
    31 
    31 
    32     def escape(c: Char): String =
    32     def escape(c: Char): String =