mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-07 17:36:00 +00:00
- fold ldml_utils.hpp into core_icu.h - refactor to use km::core::util::normalize_nfd() functions where simple to do so For #9467
28 lines
621 B
C++
28 lines
621 B
C++
/*
|
|
Copyright: © SIL International.
|
|
Description: Normalization and Regex utilities
|
|
Create Date: 23 May 2024
|
|
Authors: Steven R. Loomis
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include "keyman_core.h"
|
|
|
|
namespace km {
|
|
namespace core {
|
|
namespace util {
|
|
|
|
/** Normalize a u32string inplace to NFD. @return false on failure */
|
|
bool normalize_nfd(std::u32string &str);
|
|
|
|
/** Normalize a u16string inplace to NFD. @return false on failure */
|
|
bool normalize_nfd(std::u16string &str);
|
|
|
|
/** normalize src to dst in NFD. @return false on failure */
|
|
bool normalize_nfd(km_core_cu const * src, std::u16string &dst);
|
|
|
|
}
|
|
}
|
|
}
|