1*00c7fec1SAndroid Build Coastguard Worker /* 2*00c7fec1SAndroid Build Coastguard Worker * Copyright (C) 2016 The Android Open Source Project 3*00c7fec1SAndroid Build Coastguard Worker * 4*00c7fec1SAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 5*00c7fec1SAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 6*00c7fec1SAndroid Build Coastguard Worker * You may obtain a copy of the License at 7*00c7fec1SAndroid Build Coastguard Worker * 8*00c7fec1SAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 9*00c7fec1SAndroid Build Coastguard Worker * 10*00c7fec1SAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 11*00c7fec1SAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 12*00c7fec1SAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*00c7fec1SAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 14*00c7fec1SAndroid Build Coastguard Worker * limitations under the License. 15*00c7fec1SAndroid Build Coastguard Worker */ 16*00c7fec1SAndroid Build Coastguard Worker 17*00c7fec1SAndroid Build Coastguard Worker #ifndef HEALTHD_ANIMATION_PARSER_H 18*00c7fec1SAndroid Build Coastguard Worker #define HEALTHD_ANIMATION_PARSER_H 19*00c7fec1SAndroid Build Coastguard Worker 20*00c7fec1SAndroid Build Coastguard Worker #include <string_view> 21*00c7fec1SAndroid Build Coastguard Worker 22*00c7fec1SAndroid Build Coastguard Worker #include "animation.h" 23*00c7fec1SAndroid Build Coastguard Worker 24*00c7fec1SAndroid Build Coastguard Worker namespace android { 25*00c7fec1SAndroid Build Coastguard Worker 26*00c7fec1SAndroid Build Coastguard Worker bool parse_animation_desc(const std::string& content, animation* anim); 27*00c7fec1SAndroid Build Coastguard Worker 28*00c7fec1SAndroid Build Coastguard Worker bool can_ignore_line(const char* str); 29*00c7fec1SAndroid Build Coastguard Worker bool remove_prefix(std::string_view str, const char* prefix, const char** rest); 30*00c7fec1SAndroid Build Coastguard Worker bool parse_text_field(const char* in, animation::text_field* field); 31*00c7fec1SAndroid Build Coastguard Worker } // namespace android 32*00c7fec1SAndroid Build Coastguard Worker 33*00c7fec1SAndroid Build Coastguard Worker #endif // HEALTHD_ANIMATION_PARSER_H 34