OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "SkXMLParser.h" | 10 #include "SkXMLParser.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 void SkXMLParserError::reset() { | 45 void SkXMLParserError::reset() { |
46 fCode = kNoError; | 46 fCode = kNoError; |
47 fLineNumber = -1; | 47 fLineNumber = -1; |
48 fNativeCode = -1; | 48 fNativeCode = -1; |
49 } | 49 } |
50 | 50 |
51 | 51 |
52 //////////////// | 52 //////////////// |
53 | 53 |
54 SkXMLParser::SkXMLParser(SkXMLParserError* parserError) : fParser(NULL), fError(
parserError) | 54 SkXMLParser::SkXMLParser(SkXMLParserError* parserError) : fParser(nullptr), fErr
or(parserError) |
55 { | 55 { |
56 } | 56 } |
57 | 57 |
58 SkXMLParser::~SkXMLParser() | 58 SkXMLParser::~SkXMLParser() |
59 { | 59 { |
60 } | 60 } |
61 | 61 |
62 bool SkXMLParser::parse(SkStream& docStream) | 62 bool SkXMLParser::parse(SkStream& docStream) |
63 { | 63 { |
64 return false; | 64 return false; |
(...skipping 28 matching lines...) Expand all Loading... |
93 { | 93 { |
94 return this->onText(text, len); | 94 return this->onText(text, len); |
95 } | 95 } |
96 | 96 |
97 //////////////////////////////////////////////////////////////////////////////// | 97 //////////////////////////////////////////////////////////////////////////////// |
98 | 98 |
99 bool SkXMLParser::onStartElement(const char elem[]) {return false; } | 99 bool SkXMLParser::onStartElement(const char elem[]) {return false; } |
100 bool SkXMLParser::onAddAttribute(const char name[], const char value[]) {return
false; } | 100 bool SkXMLParser::onAddAttribute(const char name[], const char value[]) {return
false; } |
101 bool SkXMLParser::onEndElement(const char elem[]) { return false; } | 101 bool SkXMLParser::onEndElement(const char elem[]) { return false; } |
102 bool SkXMLParser::onText(const char text[], int len) {return false; } | 102 bool SkXMLParser::onText(const char text[], int len) {return false; } |
OLD | NEW |