11767c5feSopenharmony_ci// Copyright (C) 2011 The Libphonenumber Authors
21767c5feSopenharmony_ci//
31767c5feSopenharmony_ci// Licensed under the Apache License, Version 2.0 (the "License");
41767c5feSopenharmony_ci// you may not use this file except in compliance with the License.
51767c5feSopenharmony_ci// You may obtain a copy of the License at
61767c5feSopenharmony_ci//
71767c5feSopenharmony_ci// http://www.apache.org/licenses/LICENSE-2.0
81767c5feSopenharmony_ci//
91767c5feSopenharmony_ci// Unless required by applicable law or agreed to in writing, software
101767c5feSopenharmony_ci// distributed under the License is distributed on an "AS IS" BASIS,
111767c5feSopenharmony_ci// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
121767c5feSopenharmony_ci// See the License for the specific language governing permissions and
131767c5feSopenharmony_ci// limitations under the License.
141767c5feSopenharmony_ci
151767c5feSopenharmony_ci// Author: Philippe Liard
161767c5feSopenharmony_ci
171767c5feSopenharmony_ci#ifndef I18N_PHONENUMBERS_REGEXP_ADAPTER_ICU_H_
181767c5feSopenharmony_ci#define I18N_PHONENUMBERS_REGEXP_ADAPTER_ICU_H_
191767c5feSopenharmony_ci
201767c5feSopenharmony_ci#include <string>
211767c5feSopenharmony_ci
221767c5feSopenharmony_ci#include "phonenumbers/regexp_adapter.h"
231767c5feSopenharmony_ci
241767c5feSopenharmony_cinamespace i18n {
251767c5feSopenharmony_cinamespace phonenumbers {
261767c5feSopenharmony_ci
271767c5feSopenharmony_ci// ICU regexp factory that lets the user instantiate the underlying
281767c5feSopenharmony_ci// implementation of RegExp and RegExpInput classes based on the ICU regexp
291767c5feSopenharmony_ci// engine.
301767c5feSopenharmony_ciclass ICURegExpFactory : public AbstractRegExpFactory {
311767c5feSopenharmony_ci public:
321767c5feSopenharmony_ci  virtual ~ICURegExpFactory() {}
331767c5feSopenharmony_ci
341767c5feSopenharmony_ci  virtual RegExpInput* CreateInput(const string& utf8_input) const;
351767c5feSopenharmony_ci  virtual RegExp* CreateRegExp(const string& utf8_regexp) const;
361767c5feSopenharmony_ci};
371767c5feSopenharmony_ci
381767c5feSopenharmony_ci}  // namespace phonenumbers
391767c5feSopenharmony_ci}  // namespace i18n
401767c5feSopenharmony_ci
411767c5feSopenharmony_ci#endif  // I18N_PHONENUMBERS_REGEXP_ADAPTER_ICU_H_
42