fre*_*low 5 string scala escaping string-literals
Is there a general Scala utility method that converts a string to a string literal? The simple lambda function "\"" + _ + "\"" only works for strings without any special characters.
For example, the string \" (length 2) should be converted to the string "\\\"" (length 6).
| 归档时间: |
|
| 查看次数: |
26218 次 |
| 最近记录: |