Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
ce391606
Commit
ce391606
authored
Oct 02, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add const qualifier
parent
facac0f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
include/charset.h
include/charset.h
+1
-1
src/misc/charset.c
src/misc/charset.c
+3
-3
No files found.
include/charset.h
View file @
ce391606
...
...
@@ -30,7 +30,7 @@ VLC_EXPORT( void, LocaleFree, ( const char * ) );
VLC_EXPORT
(
char
*
,
FromLocale
,
(
const
char
*
)
);
VLC_EXPORT
(
char
*
,
ToLocale
,
(
const
char
*
)
);
VLC_EXPORT
(
char
*
,
EnsureUTF8
,
(
char
*
)
);
VLC_EXPORT
(
char
*
,
FromUTF32
,
(
wchar_t
*
)
);
VLC_EXPORT
(
char
*
,
FromUTF32
,
(
const
wchar_t
*
)
);
VLC_EXPORT
(
char
*
,
__vlc_fix_readdir_charset
,
(
vlc_object_t
*
,
const
char
*
)
);
#define vlc_fix_readdir_charset(a,b) __vlc_fix_readdir_charset(VLC_OBJECT(a),b)
...
...
src/misc/charset.c
View file @
ce391606
...
...
@@ -379,7 +379,7 @@ char *__vlc_fix_readdir_charset( vlc_object_t *p_this, const char *psz_string )
/**********************************************************************
* UTF32toUTF8: converts UTF-32 to UTF-8
*********************************************************************/
char
*
UTF32toUTF8
(
wchar_t
*
src
,
size_t
len
,
size_t
*
newlen
)
char
*
UTF32toUTF8
(
const
wchar_t
*
src
,
size_t
len
,
size_t
*
newlen
)
{
char
*
res
,
*
out
;
...
...
@@ -430,10 +430,10 @@ char *UTF32toUTF8( wchar_t *src, size_t len, size_t *newlen )
}
char
*
FromUTF32
(
wchar_t
*
src
)
char
*
FromUTF32
(
const
wchar_t
*
src
)
{
size_t
len
;
wchar_t
*
in
;
const
wchar_t
*
in
;
/* determine the size of the string */
for
(
len
=
1
,
in
=
src
;
GetWBE
(
in
);
len
++
)
...
...
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