Skip to content

Commit b9beae0

Browse files
committed
Use consistent naming for {Composing,Decomposing}Normalizer FFI
1 parent b3310ed commit b9beae0

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ffi/capi/bindings/c/DecomposingNormalizer.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ffi/capi/bindings/cpp/icu4x/DecomposingNormalizer.hpp

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ffi/capi/src/normalizer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ pub mod ffi {
285285
)]
286286
#[diplomat::attr(not(supports = utf8_strings), disable)]
287287
#[diplomat::attr(*, rename = "is_normalized")]
288-
pub fn is_normalized(&self, s: &DiplomatStr) -> bool {
288+
pub fn is_normalized_utf8(&self, s: &DiplomatStr) -> bool {
289289
self.0.as_borrowed().is_normalized_utf8(s)
290290
}
291291

@@ -314,7 +314,7 @@ pub mod ffi {
314314
)]
315315
#[diplomat::attr(not(supports = utf8_strings), disable)]
316316
#[diplomat::attr(*, rename = "is_normalized_up_to")]
317-
pub fn is_normalized_up_to(&self, s: &DiplomatStr) -> usize {
317+
pub fn is_normalized_utf8_up_to(&self, s: &DiplomatStr) -> usize {
318318
self.0.as_borrowed().split_normalized_utf8(s).0.len()
319319
}
320320

0 commit comments

Comments
 (0)