Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
main
pyicu
Commits
7c159dd5
Commit
7c159dd5
authored
Jan 10, 2023
by
Andi Vajda
Browse files
added wrappers for ULineBreakTag, USentenceBreakTag
parent
39a26d92
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
7c159dd5
...
...
@@ -2,7 +2,7 @@ Version 2.10.2 ->
------------------------
- fixed bug PluralFormat.format accepting python strings, which are immutable
- fixed bug with UWordBreak wrapping wrong enum (UBreakIteratorType)
- added wrapper for UBreakIteratorType
- added wrapper for UBreakIteratorType
, ULine|SentenceBreakTag
-
Version 2.10.1 -> 2.10.2
...
...
iterators.cpp
View file @
7c159dd5
...
...
@@ -31,6 +31,8 @@
DECLARE_CONSTANTS_TYPE
(
UBreakIteratorType
)
DECLARE_CONSTANTS_TYPE
(
UWordBreak
)
DECLARE_CONSTANTS_TYPE
(
ULineBreakTag
)
DECLARE_CONSTANTS_TYPE
(
USentenceBreakTag
)
/* ForwardCharacterIterator */
...
...
@@ -1508,6 +1510,8 @@ void _init_iterators(PyObject *m)
INSTALL_CONSTANTS_TYPE
(
UBreakIteratorType
,
m
);
INSTALL_CONSTANTS_TYPE
(
UWordBreak
,
m
);
INSTALL_CONSTANTS_TYPE
(
ULineBreakTag
,
m
);
INSTALL_CONSTANTS_TYPE
(
USentenceBreakTag
,
m
);
INSTALL_TYPE
(
ForwardCharacterIterator
,
m
);
INSTALL_TYPE
(
CharacterIterator
,
m
);
...
...
@@ -1536,6 +1540,16 @@ void _init_iterators(PyObject *m)
INSTALL_ENUM
(
UWordBreak
,
"IDEO"
,
UBRK_WORD_IDEO
);
INSTALL_ENUM
(
UWordBreak
,
"IDEO_LIMIT"
,
UBRK_WORD_IDEO_LIMIT
);
INSTALL_ENUM
(
ULineBreakTag
,
"SOFT"
,
UBRK_LINE_SOFT
);
INSTALL_ENUM
(
ULineBreakTag
,
"SOFT_LIMIT"
,
UBRK_LINE_SOFT_LIMIT
);
INSTALL_ENUM
(
ULineBreakTag
,
"HARD"
,
UBRK_LINE_HARD
);
INSTALL_ENUM
(
ULineBreakTag
,
"HARD_LIMIT"
,
UBRK_LINE_HARD_LIMIT
);
INSTALL_ENUM
(
USentenceBreakTag
,
"TERM"
,
UBRK_SENTENCE_TERM
);
INSTALL_ENUM
(
USentenceBreakTag
,
"TERM_LIMIT"
,
UBRK_SENTENCE_TERM_LIMIT
);
INSTALL_ENUM
(
USentenceBreakTag
,
"SEP"
,
UBRK_SENTENCE_SEP
);
INSTALL_ENUM
(
USentenceBreakTag
,
"SEP_LIMIT"
,
UBRK_SENTENCE_SEP_LIMIT
);
INSTALL_STATIC_INT
(
ForwardCharacterIterator
,
DONE
);
INSTALL_STATIC_INT
(
BreakIterator
,
DONE
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment