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
2f5938c9
Commit
2f5938c9
authored
3 years ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
The ole extern "C" trick eh?
parent
a035db22
No related branches found
No related tags found
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Pipeline
#2707
passed
3 years ago
Stage: build
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/conio/utf8_codepages.h
+6
-0
6 additions, 0 deletions
src/conio/utf8_codepages.h
with
6 additions
and
0 deletions
src/conio/utf8_codepages.h
+
6
−
0
View file @
2f5938c9
...
...
@@ -42,6 +42,9 @@ struct codepage_def {
const
uint32_t
*
cp_ext_unicode_table
;
};
#ifdef __cplusplus
extern
"C"
{
#endif
extern
const
struct
codepage_def
ciolib_cp
[
CIOLIB_CP_COUNT
];
uint8_t
*
cp_to_utf8
(
enum
ciolib_codepage
cp
,
const
char
*
cpstr
,
size_t
buflen
,
size_t
*
outlen
);
...
...
@@ -49,5 +52,8 @@ char *utf8_to_cp(enum ciolib_codepage cp, const uint8_t *utf8str, char unmapped,
uint8_t
cpchar_from_unicode_cpoint
(
enum
ciolib_codepage
cp
,
uint32_t
cpoint
,
char
unmapped
);
uint32_t
cpoint_from_cpchar
(
enum
ciolib_codepage
cp
,
uint8_t
ch
);
uint32_t
cpoint_from_cpchar_ext
(
enum
ciolib_codepage
cp
,
uint8_t
ch
);
#ifdef __cplusplus
}
#endif
#endif
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