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
0dd263ce
Commit
0dd263ce
authored
Aug 19, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc_UrlIsNotEncoded: remove dead function
parent
1cc355f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
+0
-30
include/vlc_url.h
include/vlc_url.h
+0
-30
No files found.
include/vlc_url.h
View file @
0dd263ce
...
@@ -193,34 +193,4 @@ static inline void vlc_UrlClean( vlc_url_t *url )
...
@@ -193,34 +193,4 @@ static inline void vlc_UrlClean( vlc_url_t *url )
url
->
psz_buffer
=
NULL
;
url
->
psz_buffer
=
NULL
;
}
}
#include <ctype.h>
/** Check whether a given string is not a valid URL and must hence be
* encoded */
static
inline
int
vlc_UrlIsNotEncoded
(
const
char
*
psz_url
)
{
const
char
*
ptr
;
for
(
ptr
=
psz_url
;
*
ptr
;
ptr
++
)
{
unsigned
char
c
=
*
ptr
;
if
(
c
==
'%'
)
{
if
(
!
isxdigit
(
(
unsigned
char
)
ptr
[
1
]
)
||
!
isxdigit
(
(
unsigned
char
)
ptr
[
2
]
)
)
return
1
;
/* not encoded */
ptr
+=
2
;
}
else
if
(
(
(
unsigned
char
)(
c
-
'a'
)
<
26
)
||
(
(
unsigned
char
)(
c
-
'A'
)
<
26
)
||
(
(
unsigned
char
)(
c
-
'0'
)
<
10
)
||
(
strchr
(
"-_."
,
c
)
!=
NULL
)
)
return
1
;
}
return
0
;
/* looks fine - but maybe it is not encoded */
}
#endif
#endif
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