Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: src/cff_type2_charstring.cc

Issue 13449003: [OTS] Make standalone tools compile on Mac (Closed) Base URL: http://ots.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/idempotent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cff_type2_charstring.cc
===================================================================
--- src/cff_type2_charstring.cc (revision 98)
+++ src/cff_type2_charstring.cc (working copy)
@@ -38,108 +38,6 @@
bool *out_found_width,
size_t *in_out_num_stems);
-// Converts |op| to a string and returns it.
-const char *Type2CharStringOperatorToString(ots::Type2CharStringOperator op) {
- switch (op) {
- case ots::kHStem:
- return "HStem";
- case ots::kVStem:
- return "VStem";
- case ots::kVMoveTo:
- return "VMoveTo";
- case ots::kRLineTo:
- return "RLineTo";
- case ots::kHLineTo:
- return "HLineTo";
- case ots::kVLineTo:
- return "VLineTo";
- case ots::kRRCurveTo:
- return "RRCurveTo";
- case ots::kCallSubr:
- return "CallSubr";
- case ots::kReturn:
- return "Return";
- case ots::kEndChar:
- return "EndChar";
- case ots::kHStemHm:
- return "HStemHm";
- case ots::kHintMask:
- return "HintMask";
- case ots::kCntrMask:
- return "CntrMask";
- case ots::kRMoveTo:
- return "RMoveTo";
- case ots::kHMoveTo:
- return "HMoveTo";
- case ots::kVStemHm:
- return "VStemHm";
- case ots::kRCurveLine:
- return "RCurveLine";
- case ots::kRLineCurve:
- return "RLineCurve";
- case ots::kVVCurveTo:
- return "VVCurveTo";
- case ots::kHHCurveTo:
- return "HHCurveTo";
- case ots::kCallGSubr:
- return "CallGSubr";
- case ots::kVHCurveTo:
- return "VHCurveTo";
- case ots::kHVCurveTo:
- return "HVCurveTo";
- case ots::kAnd:
- return "And";
- case ots::kOr:
- return "Or";
- case ots::kNot:
- return "Not";
- case ots::kAbs:
- return "Abs";
- case ots::kAdd:
- return "Add";
- case ots::kSub:
- return "Sub";
- case ots::kDiv:
- return "Div";
- case ots::kNeg:
- return "Neg";
- case ots::kEq:
- return "Eq";
- case ots::kDrop:
- return "Drop";
- case ots::kPut:
- return "Put";
- case ots::kGet:
- return "Get";
- case ots::kIfElse:
- return "IfElse";
- case ots::kRandom:
- return "Random";
- case ots::kMul:
- return "Mul";
- case ots::kSqrt:
- return "Sqrt";
- case ots::kDup:
- return "Dup";
- case ots::kExch:
- return "Exch";
- case ots::kIndex:
- return "Index";
- case ots::kRoll:
- return "Roll";
- case ots::kHFlex:
- return "HFlex";
- case ots::kFlex:
- return "Flex";
- case ots::kHFlex1:
- return "HFlex1";
- case ots::kFlex1:
- return "Flex1";
- }
-
- return "UNKNOWN";
-}
-
// Read one or more bytes from the |char_string| buffer and stores the number
// read on |out_number|. If the number read is an operator (ex 'vstem'), sets
// true on |out_is_operator|. Returns true if the function read a number.
« no previous file with comments | « no previous file | test/idempotent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698