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
Commits
16571d5b
Commit
16571d5b
authored
Feb 10, 2022
by
Deucе
👌🏾
Browse files
Whoops, add missing files for last commit.
parent
d9660eaf
Pipeline
#2698
failed with stage
in 6 minutes and 6 seconds
Changes
2
Pipelines
1
Hide 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)
}
}
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
)
{
switch
(
codepoint
)
{
...
...
src/xpdev/unicode.h
View file @
16571d5b
...
...
@@ -46,6 +46,7 @@ extern "C" {
extern
enum
unicode_codepoint
cp437_unicode_tbl
[];
size_t
unicode_width
(
enum
unicode_codepoint
);
char
unicode_to_cp437
(
enum
unicode_codepoint
);
char
unicode_to_latin1
(
enum
unicode_codepoint
);
#if defined(__cplusplus)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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