Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
d9660eaf60094e10ef2ec54e8fae8b77b6721a4e...16571d5b91ad7167faf522993e559594777424e0
Commits (1)
Whoops, add missing files for last commit.
· 16571d5b
Deucе
authored
Feb 10, 2022
16571d5b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
src/xpdev/unicode.c
src/xpdev/unicode.c
+7
-0
src/xpdev/unicode.h
src/xpdev/unicode.h
+1
-0
No files found.
src/xpdev/unicode.c
View file @
16571d5b
...
@@ -348,6 +348,13 @@ size_t unicode_width(enum unicode_codepoint u)
...
@@ -348,6 +348,13 @@ size_t unicode_width(enum unicode_codepoint u)
}
}
}
}
char
unicode_to_latin1
(
enum
unicode_codepoint
codepoint
)
{
if
(
codepoint
<
0
||
codepoint
>
255
)
return
UNICODE_UNDEFINED
;
return
codepoint
;
}
char
unicode_to_cp437
(
enum
unicode_codepoint
codepoint
)
char
unicode_to_cp437
(
enum
unicode_codepoint
codepoint
)
{
{
switch
(
codepoint
)
{
switch
(
codepoint
)
{
...
...
src/xpdev/unicode.h
View file @
16571d5b
...
@@ -46,6 +46,7 @@ extern "C" {
...
@@ -46,6 +46,7 @@ extern "C" {
extern
enum
unicode_codepoint
cp437_unicode_tbl
[];
extern
enum
unicode_codepoint
cp437_unicode_tbl
[];
size_t
unicode_width
(
enum
unicode_codepoint
);
size_t
unicode_width
(
enum
unicode_codepoint
);
char
unicode_to_cp437
(
enum
unicode_codepoint
);
char
unicode_to_cp437
(
enum
unicode_codepoint
);
char
unicode_to_latin1
(
enum
unicode_codepoint
);
#if defined(__cplusplus)
#if defined(__cplusplus)
}
}
...
...