From 37f1f04142d9ab899655a7de7c80fac66b4405c7 Mon Sep 17 00:00:00 2001 From: Josh Suereth Date: Fri, 28 Sep 2012 09:22:14 -0400 Subject: add a bit about unicode to scaladoc. --- src/library/scala/StringContext.scala | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/library/scala/StringContext.scala b/src/library/scala/StringContext.scala index 17c1d0d2ba..d9f41f6002 100644 --- a/src/library/scala/StringContext.scala +++ b/src/library/scala/StringContext.scala @@ -97,6 +97,13 @@ case class StringContext(parts: String*) { * * For example, the raw processed string `raw"a\nb"` is equal to the scala string `"a\\nb"`. * + * ''Note:'' Even when using the raw interpolator, Scala will preprocess unicode escapes. + * For example: + * {{{ + * scala> raw"\u0123" + * res0: String = ģ + * }}} + * * @param `args` The arguments to be inserted into the resulting string. * @throws An `IllegalArgumentException` * if the number of `parts` in the enclosing `StringContext` does not exceed -- cgit v1.2.3