blob: ea3d8a32457dbc19f93c5f9b1b4ee50a1465de1e [file] [log] [blame]
/*
* Copyright (C) 2015, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef AIDL_PARSE_HELPERS_H_
#define AIDL_PARSE_HELPERS_H_
namespace android {
namespace aidl {
// strips off the leading whitespace, the "import" text
// also returns whether it's a local or system import
// we rely on the input matching the import regex from below
char* parse_import_statement(const char* text);
int convert_direction(const char* direction);
bool is_java_keyword(const char* str);
} // namespace android
} // namespace aidl
#endif // AIDL_PARSE_HELPERS_H_