decancer 4.0.0
A library that detects and filters common unicode confusables/homoglyphs.
No such query exists :(
Functions
Type definitions
Macros
Loading...
Searching...
No Matches
decancer_suggestion_t Struct Reference

Represents a cure suggestion by decancer. More...

Data Fields

size_t old_index
 The character's UTF-8 index in the original input string.
size_t new_index
 The translation's UTF-8 index in the suggested cured string or DECANCER_SUGGESTION_REMOVED_INDEX if it's removed.
decancer_translation_t translation
 The suggested translation.

Detailed Description

Represents a cure suggestion by decancer.

typedef struct {
size_t old_index;
size_t new_index;
Represents a cure suggestion by decancer.
Definition decancer.h:556
size_t new_index
The translation's UTF-8 index in the suggested cured string or DECANCER_SUGGESTION_REMOVED_INDEX if i...
Definition decancer.h:567
size_t old_index
The character's UTF-8 index in the original input string.
Definition decancer.h:561
decancer_translation_t translation
The suggested translation.
Definition decancer.h:573
Represents a translation of a unicode codepoint.
Definition decancer.h:471
See also
decancer_get_suggestion_length
decancer_get_suggestion
DECANCER_SUGGESTION_REMOVED_INDEX
Since
4.1.0

Field Documentation

◆ new_index

size_t decancer_suggestion_t::new_index

The translation's UTF-8 index in the suggested cured string or DECANCER_SUGGESTION_REMOVED_INDEX if it's removed.

Since
4.1.0

◆ old_index

size_t decancer_suggestion_t::old_index

The character's UTF-8 index in the original input string.

Since
4.1.0

◆ translation

decancer_translation_t decancer_suggestion_t::translation

The suggested translation.

Since
4.1.0

The documentation for this struct was generated from the following file: