String.TranslateEscapes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a string whose value is this string, with escape sequences translated as if in a string literal.
[Android.Runtime.Register("translateEscapes", "()Ljava/lang/String;", "", ApiSince=34)]
public string TranslateEscapes ();
[<Android.Runtime.Register("translateEscapes", "()Ljava/lang/String;", "", ApiSince=34)>]
member this.TranslateEscapes : unit -> string
Returns
String with escape sequences translated.
- Attributes
Remarks
Returns a string whose value is this string, with escape sequences translated as if in a string literal.
Escape sequences are translated as follows; <table class="striped"> <caption style="display:none">Translation</caption> <thead> <tr> <th scope="col">Escape</th> <th scope="col">Name</th> <th scope="col">Translation</th> </tr> </thead> <tbody> <tr> <th scope="row">\u005Cb
</th> <td>backspace</td> <td>U+0008
</td> </tr> <tr> <th scope="row">\u005Ct
</th> <td>horizontal tab</td> <td>U+0009
</td> </tr> <tr> <th scope="row">\u005Cn
</th> <td>line feed</td> <td>U+000A
</td> </tr> <tr> <th scope="row">\u005Cf
</th> <td>form feed</td> <td>U+000C
</td> </tr> <tr> <th scope="row">\u005Cr
</th> <td>carriage return</td> <td>U+000D
</td> </tr> <tr> <th scope="row">\u005Cs
</th> <td>space</td> <td>U+0020
</td> </tr> <tr> <th scope="row">\u005C"
</th> <td>double quote</td> <td>U+0022
</td> </tr> <tr> <th scope="row">\u005C'
</th> <td>single quote</td> <td>U+0027
</td> </tr> <tr> <th scope="row">\u005C\u005C
</th> <td>backslash</td> <td>U+005C
</td> </tr> <tr> <th scope="row">\u005C0 - \u005C377
</th> <td>octal escape</td> <td>code point equivalents</td> </tr> <tr> <th scope="row">\u005C<line-terminator>
</th> <td>continuation</td> <td>discard</td> </tr> </tbody> </table>
Added in 15.
Java documentation for java.lang.String.translateEscapes()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.