We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de5eb52 + 3526a75 commit 7efbc7dCopy full SHA for 7efbc7d
1 file changed
transcrypt/modules/unicodedata/__init__.py
@@ -0,0 +1,9 @@
1
+#!/usr/bin/env python3
2
+# -*- coding: UTF-8 -*-
3
+
4
+def normalize(form, unistr):
5
+ # Delegate to ES6's method:
6
+ # http://www.ecma-international.org/ecma-262/6.0/#sec-string.prototype.normalize
7
+ # Both ES6 and CPython require that `form` be the same four values.
8
+ # https://github.com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Modules/unicodedata.c
9
+ return String.prototype.normalize.call(unistr, form)
0 commit comments