Difference between revisions of "Utf8.escape"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2016.06<br/>
+
'''<translate>Available since</translate>:''' Gideros 2016.06<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate>Escape a str to UTF-8 format string. It support several escape format:
 
<translate>Escape a str to UTF-8 format string. It support several escape format:
 
%ddd - which ddd is a decimal number at any length: change Unicode code point to UTF-8 format. %{ddd} - same as %nnn but has bracket around. %uddd - same as %ddd, u stands Unicode %u{ddd} - same as %{ddd} %xhhh - hexadigit version of %ddd %x{hhh} same as %xhhh. %? - '?' stands for any other character: escape this character.</translate>
 
%ddd - which ddd is a decimal number at any length: change Unicode code point to UTF-8 format. %{ddd} - same as %nnn but has bracket around. %uddd - same as %ddd, u stands Unicode %u{ddd} - same as %{ddd} %xhhh - hexadigit version of %ddd %x{hhh} same as %xhhh. %? - '?' stands for any other character: escape this character.</translate>
Line 7: Line 7:
 
(string) = utf8.escape(s)
 
(string) = utf8.escape(s)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''s''': (string) <translate></translate> <br/>
 
'''s''': (string) <translate></translate> <br/>
=== Return values ===
+
=== <translate>Return values</translate> ===
'''Returns''' (string) <translate>escaped string</translate><br/>
+
'''<translate>Returns</translate>''' (string) <translate>escaped string</translate><br/>

Revision as of 08:29, 24 August 2018

Available since: Gideros 2016.06

Description

Escape a str to UTF-8 format string. It support several escape format: %ddd - which ddd is a decimal number at any length: change Unicode code point to UTF-8 format. %{ddd} - same as %nnn but has bracket around. %uddd - same as %ddd, u stands Unicode %u{ddd} - same as %{ddd} %xhhh - hexadigit version of %ddd %x{hhh} same as %xhhh. %? - '?' stands for any other character: escape this character.

(string) = utf8.escape(s)

Parameters

s: (string)

Return values

Returns (string) escaped string