1393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski/*
2393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski * Copyright (C) 2016 The Android Open Source Project
3393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski *
4393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski * Licensed under the Apache License, Version 2.0 (the "License");
5393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski * you may not use this file except in compliance with the License.
6393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski * You may obtain a copy of the License at
7393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski *
8393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski *      http://www.apache.org/licenses/LICENSE-2.0
9393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski *
10393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski * Unless required by applicable law or agreed to in writing, software
11393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski * distributed under the License is distributed on an "AS IS" BASIS,
12393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski * See the License for the specific language governing permissions and
14393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski * limitations under the License.
15393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski */
16393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski
17393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski#ifndef AAPT_COMPILE_PSEUDOLOCALEGENERATOR_H
18393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski#define AAPT_COMPILE_PSEUDOLOCALEGENERATOR_H
19393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski
20393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski#include "StringPool.h"
21393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski#include "compile/Pseudolocalizer.h"
22393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski#include "process/IResourceTableConsumer.h"
23393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski
24393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinskinamespace aapt {
25393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski
26393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinskistd::unique_ptr<StyledString> pseudolocalizeStyledString(StyledString* string,
27393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski                                                         Pseudolocalizer::Method method,
28393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski                                                         StringPool* pool);
29393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski
30393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinskistruct PseudolocaleGenerator : public IResourceTableConsumer {
31393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski    bool consume(IAaptContext* context, ResourceTable* table) override;
32393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski};
33393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski
34393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski} // namespace aapt
35393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski
36393b5f0d6130d3848dd82075986a5cf40c09ce44Adam Lesinski#endif /* AAPT_COMPILE_PSEUDOLOCALEGENERATOR_H */
37