Oolite 1.91.0.7644-241112-7f5034b
|
import "OOPListParsing.h"
import "OOLogging.h"
import "OOStringParsing.h"
import "NSDataOOExtensions.h"
#include <ctype.h>
#include <string.h>
Go to the source code of this file.
Macros | |
#define | NO_DYNAMIC_PLIST_DTD_CHANGE |
Functions | |
static NSData * | CopyDataFromFile (NSString *path) |
static id | ValueIfClass (id value, Class class) |
id | OOPropertyListFromData (NSData *data, NSString *whereFrom) |
id | OOPropertyListFromFile (NSString *path) |
NSDictionary * | OODictionaryFromData (NSData *data, NSString *whereFrom) |
NSDictionary * | OODictionaryFromFile (NSString *path) |
NSArray * | OOArrayFromData (NSData *data, NSString *whereFrom) |
NSArray * | OOArrayFromFile (NSString *path) |
Variables | |
static NSString *const | kOOLogPListFoundationParseError = @"plist.parse.failed" |
static NSString *const | kOOLogPListWrongType = @"plist.wrongType" |
#define NO_DYNAMIC_PLIST_DTD_CHANGE |
Definition at line 35 of file OOPListParsing.m.
|
static |
Definition at line 173 of file OOPListParsing.m.
References kOOLogFileNotFound, nil, and OOLog.
Referenced by OOPropertyListFromFile().
NSArray * OOArrayFromData | ( | NSData * | data, |
NSString * | whereFrom ) |
Definition at line 215 of file OOPListParsing.m.
References OOPropertyListFromData(), and ValueIfClass().
NSArray * OOArrayFromFile | ( | NSString * | path | ) |
Definition at line 222 of file OOPListParsing.m.
References OOPropertyListFromFile(), and ValueIfClass().
Referenced by OOScript::descriptionComponents.
NSDictionary * OODictionaryFromData | ( | NSData * | data, |
NSString * | whereFrom ) |
Definition at line 201 of file OOPListParsing.m.
References OOPropertyListFromData(), and ValueIfClass().
NSDictionary * OODictionaryFromFile | ( | NSString * | path | ) |
Definition at line 208 of file OOPListParsing.m.
References OOPropertyListFromFile(), and ValueIfClass().
Referenced by NSFileManager(OOExtensions)::commanderContentsOfPath:, and LoadExplicitSettings().
id OOPropertyListFromData | ( | NSData * | data, |
NSString * | whereFrom ) |
Definition at line 51 of file OOPListParsing.m.
References kOOLogPListFoundationParseError, nil, and OOLog.
Referenced by OOArrayFromData(), OODictionaryFromData(), and OOPropertyListFromFile().
id OOPropertyListFromFile | ( | NSString * | path | ) |
Definition at line 80 of file OOPListParsing.m.
References CopyDataFromFile(), nil, and OOPropertyListFromData().
Referenced by OOArrayFromFile(), and OODictionaryFromFile().
|
static |
Definition at line 230 of file OOPListParsing.m.
References kOOLogPListWrongType, nil, and OOLog.
Referenced by OOArrayFromData(), OOArrayFromFile(), OODictionaryFromData(), and OODictionaryFromFile().
|
static |
Definition at line 39 of file OOPListParsing.m.
Referenced by OOPropertyListFromData().
|
static |
Definition at line 40 of file OOPListParsing.m.
Referenced by ValueIfClass().