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
2341f8bb
Commit
2341f8bb
authored
May 27, 2009
by
Rafaël Carré
Committed by
Jean-Baptiste Kempf
May 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused unescape_URI() and unescape_URI_duplicate()
(cherry picked from commit
b5687139
)
parent
5acc2220
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
87 deletions
+0
-87
include/vlc_url.h
include/vlc_url.h
+0
-2
src/libvlccore.sym
src/libvlccore.sym
+0
-2
src/text/strings.c
src/text/strings.c
+0
-83
No files found.
include/vlc_url.h
View file @
2341f8bb
...
@@ -45,8 +45,6 @@ struct vlc_url_t
...
@@ -45,8 +45,6 @@ struct vlc_url_t
char
*
psz_buffer
;
/* to be freed */
char
*
psz_buffer
;
/* to be freed */
};
};
VLC_EXPORT
(
char
*
,
unescape_URI_duplicate
,
(
const
char
*
psz
)
);
VLC_EXPORT
(
void
,
unescape_URI
,
(
char
*
psz
)
);
VLC_EXPORT
(
char
*
,
decode_URI_duplicate
,
(
const
char
*
psz
)
);
VLC_EXPORT
(
char
*
,
decode_URI_duplicate
,
(
const
char
*
psz
)
);
VLC_EXPORT
(
char
*
,
decode_URI
,
(
char
*
psz
)
);
VLC_EXPORT
(
char
*
,
decode_URI
,
(
char
*
psz
)
);
VLC_EXPORT
(
char
*
,
encode_URI_component
,
(
const
char
*
psz
)
);
VLC_EXPORT
(
char
*
,
encode_URI_component
,
(
const
char
*
psz
)
);
...
...
src/libvlccore.sym
View file @
2341f8bb
...
@@ -382,8 +382,6 @@ tls_ClientCreate
...
@@ -382,8 +382,6 @@ tls_ClientCreate
tls_ClientDelete
tls_ClientDelete
ToLocale
ToLocale
ToLocaleDup
ToLocaleDup
unescape_URI
unescape_URI_duplicate
update_Check
update_Check
update_Delete
update_Delete
update_Download
update_Download
...
...
src/text/strings.c
View file @
2341f8bb
...
@@ -48,89 +48,6 @@
...
@@ -48,89 +48,6 @@
#include <vlc_url.h>
#include <vlc_url.h>
#include <vlc_charset.h>
#include <vlc_charset.h>
/**
* Unescape URI encoded string
* \return decoded duplicated string
*/
char
*
unescape_URI_duplicate
(
const
char
*
psz
)
{
char
*
psz_dup
=
strdup
(
psz
);
unescape_URI
(
psz_dup
);
return
psz_dup
;
}
/**
* Unescape URI encoded string in place
* \return nothing
*/
void
unescape_URI
(
char
*
psz
)
{
unsigned
char
*
in
=
(
unsigned
char
*
)
psz
,
*
out
=
in
,
c
;
if
(
psz
==
NULL
)
return
;
while
(
(
c
=
*
in
++
)
!=
'\0'
)
{
switch
(
c
)
{
case
'%'
:
{
char
val
[
5
],
*
pval
=
val
;
unsigned
long
cp
;
switch
(
c
=
*
in
++
)
{
case
'\0'
:
return
;
case
'u'
:
case
'U'
:
if
(
(
*
pval
++
=
*
in
++
)
==
'\0'
)
return
;
if
(
(
*
pval
++
=
*
in
++
)
==
'\0'
)
return
;
c
=
*
in
++
;
default:
*
pval
++
=
c
;
if
(
(
*
pval
++
=
*
in
++
)
==
'\0'
)
return
;
*
pval
=
'\0'
;
}
cp
=
strtoul
(
val
,
NULL
,
0x10
);
if
(
cp
<
0x80
)
*
out
++
=
cp
;
else
if
(
cp
<
0x800
)
{
*
out
++
=
((
cp
>>
6
)
|
0xc0
);
*
out
++
=
((
cp
&
0x3f
)
|
0x80
);
}
else
{
assert
(
cp
<
0x10000
);
*
out
++
=
((
cp
>>
12
)
|
0xe0
);
*
out
++
=
(((
cp
>>
6
)
&
0x3f
)
|
0x80
);
*
out
++
=
((
cp
&
0x3f
)
|
0x80
);
}
break
;
}
/* + is not a special case - it means plus, not space. */
default:
/* Inserting non-ASCII or non-printable characters is unsafe,
* and no sane browser will send these unencoded */
if
(
(
c
<
32
)
||
(
c
>
127
)
)
*
out
++
=
'?'
;
else
*
out
++
=
c
;
}
}
*
out
=
'\0'
;
}
/**
/**
* Decode encoded URI component. See also decode_URI().
* Decode encoded URI component. See also decode_URI().
* \return decoded duplicated string
* \return decoded duplicated string
...
...
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