@@ -43,6 +43,9 @@ More or less just for fun.
4343<dt ><a href =" #module_stringMutilator " >stringMutilator</a ></dt >
4444<dd ><p >Functions for mutilating strings.</p >
4545</dd >
46+ <dt ><a href =" #module_stringMutilator/unicode " >stringMutilator/unicode</a ></dt >
47+ <dd ><p >Functions for handle unicode stuff.</p >
48+ </dd >
4649</dl >
4750
4851## Functions
@@ -240,6 +243,39 @@ stringMutilator.compressor.signature('䡥汬漠坯牬搡');
240243## stringMutilator
241244Functions for mutilating strings.
242245
246+ <a name =" module_stringMutilator/unicode " ></a >
247+
248+ ## stringMutilator/unicode
249+ Functions for handle unicode stuff.
250+
251+
252+ * [ stringMutilator/unicode] ( #module_stringMutilator/unicode )
253+ * [ ~ fixSurrogates(string)] ( #module_stringMutilator/unicode..fixSurrogates ) ⇒ <code >string</code >
254+ * [ ~ unfixSurrogates(string)] ( #module_stringMutilator/unicode..unfixSurrogates ) ⇒ <code >string</code >
255+
256+ <a name =" module_stringMutilator/unicode..fixSurrogates " ></a >
257+
258+ ### stringMutilator/unicode~ fixSurrogates(string) ⇒ <code >string</code >
259+ Fix unpaired high/low surrogates by adding a blank high/low surrogate
260+ (U+D800 or U+DC00) to the required location.
261+
262+ ** Kind** : inner method of [ <code >stringMutilator/unicode</code >] ( #module_stringMutilator/unicode )
263+
264+ | Param | Type | Description |
265+ | --- | --- | --- |
266+ | string | <code >string</code > | The input string |
267+
268+ <a name =" module_stringMutilator/unicode..unfixSurrogates " ></a >
269+
270+ ### stringMutilator/unicode~ unfixSurrogates(string) ⇒ <code >string</code >
271+ Remove the by ` fixSurrogates ` added blank high/low surrogates.
272+
273+ ** Kind** : inner method of [ <code >stringMutilator/unicode</code >] ( #module_stringMutilator/unicode )
274+
275+ | Param | Type | Description |
276+ | --- | --- | --- |
277+ | string | <code >string</code > | The input string |
278+
243279<a name =" flipBits " ></a >
244280
245281## flipBits(string) ⇒ <code >string</code >
@@ -532,6 +568,8 @@ $ string-mutilator --help
532568 shift
533569 shiftBits
534570 toMANS
571+ unicode.fixSurrogates
572+ unicode.unfixSurrogates
535573
536574 Examples
537575 $ string-mutilator shift "Hello World!" 6
0 commit comments