Oolite 1.91.0.7644-241112-7f5034b
|
Go to the source code of this file.
Classes | |
category | NSString(OOUtilities) |
Functions | |
NSMutableArray * | ScanTokensFromString (NSString *values) |
BOOL | ScanVectorFromString (NSString *xyzString, Vector *outVector) |
BOOL | ScanHPVectorFromString (NSString *xyzString, HPVector *outVector) |
BOOL | ScanQuaternionFromString (NSString *wxyzString, Quaternion *outQuaternion) |
BOOL | ScanVectorAndQuaternionFromString (NSString *xyzwxyzString, Vector *outVector, Quaternion *outQuaternion) |
Vector | VectorFromString (NSString *xyzString, Vector defaultValue) |
Quaternion | QuaternionFromString (NSString *wxyzString, Quaternion defaultValue) |
NSString * | StringFromPoint (NSPoint point) |
NSPoint | PointFromString (NSString *xyString) |
Random_Seed | RandomSeedFromString (NSString *abcdefString) |
NSString * | StringFromRandomSeed (Random_Seed seed) |
NSString * | OOStringFromDeciCredits (OOCreditsQuantity tenthsOfCredits, BOOL includeDecimal, BOOL includeSymbol) |
OOINLINE NSString * | OOStringFromIntCredits (OOCreditsQuantity integerCredits, BOOL includeSymbol) |
OOINLINE NSString * | OOCredits (OOCreditsQuantity tenthsOfCredits) |
OOINLINE NSString * | OOIntCredits (OOCreditsQuantity integerCredits) |
NSString * | OOPadStringToEms (NSString *string, float numEms) |
NSArray * | ComponentsFromVersionString (NSString *string) |
NSComparisonResult | CompareVersions (NSArray *version1, NSArray *version2) |
NSString * | ClockToString (double clock, BOOL adjusting) |
NSString * ClockToString | ( | double | clock, |
BOOL | adjusting ) |
Definition at line 418 of file OOStringParsing.m.
Referenced by ClockClockStringForTime().
NSComparisonResult CompareVersions | ( | NSArray * | version1, |
NSArray * | version2 ) |
Definition at line 386 of file OOStringParsing.m.
References nil.
Referenced by OoliteCompareVersion().
NSArray * ComponentsFromVersionString | ( | NSString * | string | ) |
Definition at line 359 of file OOStringParsing.m.
References count, MAX, and nil.
Referenced by OoliteCompareVersion(), and VersionComponents().
OOINLINE NSString * OOCredits | ( | OOCreditsQuantity | tenthsOfCredits | ) |
Definition at line 59 of file OOStringParsing.h.
References OOStringFromDeciCredits().
Referenced by Operator_cr(), and Operator_dcr().
OOINLINE NSString * OOIntCredits | ( | OOCreditsQuantity | integerCredits | ) |
Definition at line 63 of file OOStringParsing.h.
References OOStringFromIntCredits().
Referenced by Operator_icr(), and Operator_idcr().
NSString * OOPadStringToEms | ( | NSString * | string, |
float | numEms ) |
Definition at line 264 of file OOStringParsing.m.
References OOStringWidthInEm().
NSString * OOStringFromDeciCredits | ( | OOCreditsQuantity | tenthsOfCredits, |
BOOL | includeDecimal, | ||
BOOL | includeSymbol ) |
Definition at line 284 of file OOStringParsing.m.
References EXPECT_NOT, OOJavaScriptEngine::globalObject, nil, OOJSAcquireContext(), OOJSID, OOJSRelinquishContext(), OOJSStartTimeLimiter, OOJSStopTimeLimiter, OOJSValueFromBOOL(), OOStringFromJSValue(), and OOJavaScriptEngine::sharedEngine.
Referenced by OOCredits(), and OOStringFromIntCredits().
OOINLINE NSString * OOStringFromIntCredits | ( | OOCreditsQuantity | integerCredits, |
BOOL | includeSymbol ) |
Definition at line 54 of file OOStringParsing.h.
References OOStringFromDeciCredits().
Referenced by OOIntCredits().
NSPoint PointFromString | ( | NSString * | xyString | ) |
Definition at line 209 of file OOStringParsing.m.
References ScanTokensFromString().
Quaternion QuaternionFromString | ( | NSString * | wxyzString, |
Quaternion | defaultValue ) |
Definition at line 195 of file OOStringParsing.m.
References ScanQuaternionFromString().
Random_Seed RandomSeedFromString | ( | NSString * | abcdefString | ) |
Definition at line 224 of file OOStringParsing.m.
References Random_Seed::a, Random_Seed::b, Random_Seed::c, Random_Seed::d, Random_Seed::e, Random_Seed::f, kNilRandomSeed, kOOLogStringRandomSeedConversion, nil, and OOLogERR.
BOOL ScanHPVectorFromString | ( | NSString * | xyzString, |
HPVector * | outVector ) |
Definition at line 103 of file OOStringParsing.m.
References ScanVectorFromString().
Referenced by OOHPVectorFromObject().
BOOL ScanQuaternionFromString | ( | NSString * | wxyzString, |
Quaternion * | outQuaternion ) |
Definition at line 116 of file OOStringParsing.m.
References kOOLogStringQuaternionConversion, nil, and OOLogERR.
Referenced by OOQuaternionFromObject(), and QuaternionFromString().
static NSMutableArray * ScanTokensFromString | ( | NSString * | values | ) |
Definition at line 335 of file GetMetadataForFile.m.
References EXPECT_NOT, and nil.
Referenced by OORoleSet::anyRole, PointFromString(), SanitizeActionStatement(), and SanitizeCondition().
BOOL ScanVectorAndQuaternionFromString | ( | NSString * | xyzwxyzString, |
Vector * | outVector, | ||
Quaternion * | outQuaternion ) |
Definition at line 151 of file OOStringParsing.m.
References kOOLogStringQuaternionConversion, nil, and OOLogERR.
BOOL ScanVectorFromString | ( | NSString * | xyzString, |
Vector * | outVector ) |
Definition at line 73 of file OOStringParsing.m.
References kOOLogStringVectorConversion, nil, and OOLogERR.
Referenced by OOVectorFromObject(), ScanHPVectorFromString(), and VectorFromString().
NSString * StringFromPoint | ( | NSPoint | point | ) |
Definition at line 203 of file OOStringParsing.m.
NSString * StringFromRandomSeed | ( | Random_Seed | seed | ) |
Vector VectorFromString | ( | NSString * | xyzString, |
Vector | defaultValue ) |
Definition at line 187 of file OOStringParsing.m.
References ScanVectorFromString().