Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
d86f654b
Commit
d86f654b
authored
5 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Remove the unicode_is_zerowidth() function, it was moved to unicode.c already
parent
b05e218f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/encode/utf8.c
+0
-28
0 additions, 28 deletions
src/encode/utf8.c
with
0 additions
and
28 deletions
src/encode/utf8.c
+
0
−
28
View file @
d86f654b
...
...
@@ -139,34 +139,6 @@ char* utf8_normalize_str(char* str)
return
str
;
}
bool
unicode_is_zerowidth
(
uint32_t
u
)
{
switch
(
u
)
{
case
0x200B
:
// ZERO WIDTH SPACE
case
0x200C
:
// ZERO WIDTH NON-JOINER
case
0x200D
:
// ZERO WIDTH JOINER
case
0xFE00
:
// VARIATION SELECTOR-1
case
0xFE01
:
// VARIATION SELECTOR-2
case
0xFE02
:
// VARIATION SELECTOR-3
case
0xFE03
:
// VARIATION SELECTOR-4
case
0xFE04
:
// VARIATION SELECTOR-5
case
0xFE05
:
// VARIATION SELECTOR-6
case
0xFE06
:
// VARIATION SELECTOR-7
case
0xFE07
:
// VARIATION SELECTOR-8
case
0xFE08
:
// VARIATION SELECTOR-9
case
0xFE09
:
// VARIATION SELECTOR-10
case
0xFE0A
:
// VARIATION SELECTOR-11
case
0xFE0B
:
// VARIATION SELECTOR-12
case
0xFE0C
:
// VARIATION SELECTOR-13
case
0xFE0D
:
// VARIATION SELECTOR-14
case
0xFE0E
:
// VARIATION SELECTOR-15
case
0xFE0F
:
// VARIATION SELECTOR-16
case
0xFEFF
:
// ZERO WIDTH NO-BREAK SPACE
return
true
;
}
return
false
;
}
/* Replace all multi-byte UTF-8 sequences with 'ch' or 'zwch' (when non-zero) */
/* When ch and zwch are 0, effectively strips all UTF-8 chars from str */
char
*
utf8_replace_chars
(
char
*
str
,
char
(
*
lookup
)(
uint32_t
),
char
unsupported_ch
,
char
unsupported_zwch
,
char
error_ch
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment