summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-06-15 13:22:26 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-06-15 13:22:26 +0200
commitcbd29d513923af4afcb21df457d83ada9ed76945 (patch)
tree6e949605c546dbd0d3753fb8e9868596d1f0c40a
parentf5348e04a2d52fbf707a7def7ebcee944795dede (diff)
MLKReadtable: Rename constituent trait predicates, add digit handling methods.
-rw-r--r--MLKReadtable.h27
1 files changed, 17 insertions, 10 deletions
diff --git a/MLKReadtable.h b/MLKReadtable.h
index b7e3a66..faf98c6 100644
--- a/MLKReadtable.h
+++ b/MLKReadtable.h
@@ -54,16 +54,23 @@ enum MLKReadtableCase
-(BOOL) isConstituentCharacter:(unichar)ch;
-(BOOL) characterHasCase:(unichar)ch;
--(BOOL) isInvalidConstituent:(unichar)ch;
--(BOOL) isAlphabeticConstituent:(unichar)ch;
--(BOOL) isPackageMarkerConstituent:(unichar)ch;
--(BOOL) isAlphaDigitConstituent:(unichar)ch;
--(BOOL) isExponentMarkerConstituent:(unichar)ch;
--(BOOL) isRatioMarkerConstituent:(unichar)ch;
--(BOOL) isDecimalPointConstituent:(unichar)ch;
--(BOOL) isMinusSignConstituent:(unichar)ch;
--(BOOL) isPlusSignConstituent:(unichar)ch;
--(BOOL) isDotConstituent:(unichar)ch;
+// Constituent traits.
+-(BOOL) isInvalid:(unichar)ch;
+-(BOOL) isAlphabetic:(unichar)ch;
+-(BOOL) isPackageMarker:(unichar)ch;
+-(BOOL) isAlphaDigit:(unichar)ch;
+-(BOOL) isExponentMarker:(unichar)ch;
+-(BOOL) isNumberMarker:(unichar)ch;
+-(BOOL) isRatioMarker:(unichar)ch;
+-(BOOL) isDecimalPoint:(unichar)ch;
+-(BOOL) isMinusSign:(unichar)ch;
+-(BOOL) isPlusSign:(unichar)ch;
+-(BOOL) isSign:(unichar)ch;
+-(BOOL) isDot:(unichar)ch;
+
+// Read-base-dependent digit properties.
+-(BOOL) isDigit:(unichar)ch;
+-(int) digitWeight:(unichar)ch;
-(MLKClosure *) macroFunctionForCharacter:(unichar)ch;
-(unichar) charWithReadtableCase:(unichar)ch;