Oolite 1.91.0.7645-241119-222d325
|
import "OOStringParsing.h"
import "OOLogging.h"
import "NSScannerOOExtensions.h"
import "legacy_random.h"
import "Universe.h"
import "PlayerEntity.h"
import "PlayerEntityLegacyScriptEngine.h"
import "OOFunctionAttributes.h"
import "OOCollectionExtractors.h"
import "ResourceManager.h"
import "HeadUpDisplay.h"
import "OOJavaScriptEngine.h"
import "OOJSEngineTimeManagement.h"
Go to the source code of this file.
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 * | OOPadStringToEms (NSString *string, float padEms) |
NSString * | OOStringFromDeciCredits (OOCreditsQuantity tenthsOfCredits, BOOL includeDecimal, BOOL includeSymbol) |
NSArray * | ComponentsFromVersionString (NSString *string) |
NSComparisonResult | CompareVersions (NSArray *version1, NSArray *version2) |
NSString * | ClockToString (double clock, BOOL adjusting) |
Variables | |
static NSString *const | kOOLogStringVectorConversion = @"strings.conversion.vector" |
static NSString *const | kOOLogStringQuaternionConversion = @"strings.conversion.quaternion" |
static NSString *const | kOOLogStringRandomSeedConversion = @"strings.conversion.randomSeed" |
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().
NSString * OOPadStringToEms | ( | NSString * | string, |
float | padEms ) |
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().
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().
NSMutableArray * ScanTokensFromString | ( | NSString * | values | ) |
Definition at line 46 of file OOStringParsing.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 | ) |
Definition at line 258 of file OOStringParsing.m.
Vector VectorFromString | ( | NSString * | xyzString, |
Vector | defaultValue ) |
Definition at line 187 of file OOStringParsing.m.
References ScanVectorFromString().
|
static |
Definition at line 42 of file OOStringParsing.m.
Referenced by ScanQuaternionFromString(), and ScanVectorAndQuaternionFromString().
|
static |
Definition at line 43 of file OOStringParsing.m.
Referenced by RandomSeedFromString().
|
static |
Definition at line 41 of file OOStringParsing.m.
Referenced by ScanVectorFromString().