| OLD | NEW |
| 1 /* libs/graphics/xml/SkXMLParser.cpp | 1 /* libs/graphics/xml/SkXMLParser.cpp |
| 2 ** | 2 ** |
| 3 ** Copyright 2006, The Android Open Source Project | 3 ** Copyright 2006, The Android Open Source Project |
| 4 ** | 4 ** |
| 5 ** Licensed under the Apache License, Version 2.0 (the "License"); | 5 ** Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 ** you may not use this file except in compliance with the License. | 6 ** you may not use this file except in compliance with the License. |
| 7 ** You may obtain a copy of the License at | 7 ** You may obtain a copy of the License at |
| 8 ** | 8 ** |
| 9 ** http://www.apache.org/licenses/LICENSE-2.0 | 9 ** http://www.apache.org/licenses/LICENSE-2.0 |
| 10 ** | 10 ** |
| 11 ** Unless required by applicable law or agreed to in writing, software | 11 ** Unless required by applicable law or agreed to in writing, software |
| 12 ** distributed under the License is distributed on an "AS IS" BASIS, | 12 ** distributed under the License is distributed on an "AS IS" BASIS, |
| 13 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 13 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 ** See the License for the specific language governing permissions and | 14 ** See the License for the specific language governing permissions and |
| 15 ** limitations under the License. | 15 ** limitations under the License. |
| 16 */ | 16 */ |
| 17 | 17 |
| 18 #include "SkXMLParser.h" | 18 #include "SkXMLParser.h" |
| 19 | 19 |
| 20 static char const* const gErrorStrings[] = { | 20 static char const* const gErrorStrings[] = { |
| 21 "empty or missing file ", | 21 "empty or missing file ", |
| 22 "unknown element ", | 22 "unknown element ", |
| 23 "unknown attribute name ", | 23 "unknown attribute name ", |
| 24 "error in attribute value ", | 24 "error in attribute value ", |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 bool SkXMLParser::addAttribute(const char name[], const char value[]) | 75 bool SkXMLParser::addAttribute(const char name[], const char value[]) |
| 76 { | 76 { |
| 77 return this->onAddAttribute(name, value); | 77 return this->onAddAttribute(name, value); |
| 78 } | 78 } |
| 79 | 79 |
| 80 bool SkXMLParser::endElement(const char elem[]) | 80 bool SkXMLParser::endElement(const char elem[]) |
| 81 { | 81 { |
| 82 return this->onEndElement(elem); | 82 return this->onEndElement(elem); |
| 83 } | 83 } |
| 84 | 84 |
| 85 bool SkXMLParser::text(const char text[], int len) | 85 bool SkXMLParser::text(const char text[], int len) |
| 86 { | 86 { |
| 87 return this->onText(text, len); | 87 return this->onText(text, len); |
| 88 } | 88 } |
| 89 | 89 |
| 90 //////////////////////////////////////////////////////////////////////////////// | 90 //////////////////////////////////////////////////////////////////////////////// |
| 91 | 91 |
| 92 bool SkXMLParser::onStartElement(const char elem[]) {return false; } | 92 bool SkXMLParser::onStartElement(const char elem[]) {return false; } |
| 93 bool SkXMLParser::onAddAttribute(const char name[], const char value[]) {return
false; } | 93 bool SkXMLParser::onAddAttribute(const char name[], const char value[]) {return
false; } |
| 94 bool SkXMLParser::onEndElement(const char elem[]) { return false; } | 94 bool SkXMLParser::onEndElement(const char elem[]) { return false; } |
| 95 bool SkXMLParser::onText(const char text[], int len) {return false; } | 95 bool SkXMLParser::onText(const char text[], int len) {return false; } |
| OLD | NEW |