Searched refs:fileOrPath (Results 1 – 8 of 8) sorted by relevance
/external/fonttools/Lib/fontTools/misc/ |
D | xmlWriter.py | 14 def __init__(self, fileOrPath, indentwhite=INDENT, idlefunc=None, encoding="utf_8", argument 18 if fileOrPath == '-': 19 fileOrPath = sys.stdout 20 if not hasattr(fileOrPath, "write"): 21 self.filename = fileOrPath 22 self.file = open(fileOrPath, "wb") 27 self.file = fileOrPath
|
D | xmlReader.py | 20 def __init__(self, fileOrPath, ttFont, progress=None, quiet=None, contentOnly=False): argument 21 if fileOrPath == '-': 22 fileOrPath = sys.stdin 23 if not hasattr(fileOrPath, "read"): 24 self.file = open(fileOrPath, "rb") 28 self.file = fileOrPath
|
D | macRes.py | 19 def __init__(self, fileOrPath): argument 21 if hasattr(fileOrPath, 'read'): 22 self.file = fileOrPath 26 self.file = self.openResourceFork(fileOrPath) 31 self.file = self.openDataFork(fileOrPath)
|
/external/skia/tools/bookmaker/ |
D | parserCommon.cpp | 71 bool ParserCommon::parseFile(const char* fileOrPath, const char* suffix, OneFile oneFile) { in parseFile() argument 72 fRawFilePathDir = string(fileOrPath); in parseFile() 73 if (!sk_isdir(fileOrPath)) { in parseFile() 74 if (!this->parseFromFile(fileOrPath)) { in parseFile() 75 SkDebugf("failed to parse %s\n", fileOrPath); in parseFile() 79 SkOSFile::Iter it(fileOrPath, suffix); in parseFile() 88 SkString p = SkOSPath::Join(fileOrPath, file.c_str()); in parseFile()
|
/external/skqp/tools/bookmaker/ |
D | parserCommon.cpp | 71 bool ParserCommon::parseFile(const char* fileOrPath, const char* suffix, OneFile oneFile) { in parseFile() argument 72 fRawFilePathDir = string(fileOrPath); in parseFile() 73 if (!sk_isdir(fileOrPath)) { in parseFile() 74 if (!this->parseFromFile(fileOrPath)) { in parseFile() 75 SkDebugf("failed to parse %s\n", fileOrPath); in parseFile() 79 SkOSFile::Iter it(fileOrPath, suffix); in parseFile() 88 SkString p = SkOSPath::Join(fileOrPath, file.c_str()); in parseFile()
|
/external/fonttools/Tests/misc/ |
D | xmlReader_test.py | 18 def __init__(self, fileOrPath, ttFont, progress=None): argument 20 fileOrPath, ttFont, progress) 51 def __init__(self, fileOrPath, ttFont, progress=None): argument 53 fileOrPath, ttFont, progress)
|
/external/fonttools/Lib/fontTools/ttLib/ |
D | ttCollection.py | 70 def saveXML(self, fileOrPath, newlinestr=None, writeVersion=True, **kwargs): argument 73 writer = xmlWriter.XMLWriter(fileOrPath, newlinestr=newlinestr)
|
D | ttFont.py | 218 def saveXML(self, fileOrPath, newlinestr=None, **kwargs): argument 227 writer = xmlWriter.XMLWriter(fileOrPath, newlinestr=newlinestr) 319 def importXML(self, fileOrPath, quiet=None): argument 335 reader = xmlReader.XMLReader(fileOrPath, self)
|