string_util_icu.h 634 B

123456789101112131415161718
  1. // Copyright 2016 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef DEVICE_BLUETOOTH_STRING_UTIL_ICU_H_
  5. #define DEVICE_BLUETOOTH_STRING_UTIL_ICU_H_
  6. #include "base/strings/string_piece.h"
  7. #include "device/bluetooth/bluetooth_export.h"
  8. namespace device {
  9. // Returns true if the string contains any Unicode Graphic characters as defined
  10. // by http://www.unicode.org/reports/tr18/#graph
  11. bool DEVICE_BLUETOOTH_EXPORT HasGraphicCharacter(base::StringPiece s);
  12. } // namespace device
  13. #endif // DEVICE_BLUETOOTH_STRING_UTIL_ICU_H_