mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
##===--------------------------------------------------*- coding: utf-8 -*-===##
|
||||
# ===--- GYBUnicodeDataUtils.py -----------------------*- coding: utf-8 -*-===//
|
||||
#
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
@@ -8,26 +8,31 @@
|
||||
# See http://swift.org/LICENSE.txt for license information
|
||||
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
||||
|
||||
import re
|
||||
import codecs
|
||||
import re
|
||||
|
||||
class UnicodeProperty(object):
|
||||
"""Abstract base class for Unicode properties."""
|
||||
|
||||
def __init__(self):
|
||||
raise NotImplemented
|
||||
raise NotImplementedError(
|
||||
"UnicodeProperty.__init__ is not implemented.")
|
||||
|
||||
def get_default_value(self):
|
||||
raise NotImplemented
|
||||
raise NotImplementedError(
|
||||
"UnicodeProperty.get_default_value is not implemented.")
|
||||
|
||||
def get_value(self, cp):
|
||||
raise NotImplemented
|
||||
raise NotImplementedError(
|
||||
"UnicodeProperty.get_value is not implemented.")
|
||||
|
||||
def to_numeric_value(self, value):
|
||||
raise NotImplemented
|
||||
raise NotImplementedError(
|
||||
"UnicodeProperty.to_numeric_value is not implemented.")
|
||||
|
||||
def get_numeric_value(self, cp):
|
||||
raise NotImplemented
|
||||
raise NotImplementedError(
|
||||
"UnicodeProperty.get_numeric_value is not implemented.")
|
||||
|
||||
class GraphemeClusterBreakPropertyTable(UnicodeProperty):
|
||||
"""Grapheme_Cluster_Break property."""
|
||||
|
||||
Reference in New Issue
Block a user