Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
libremedia
Tethys
FFmpeg
Commits
12c5c1d3
Commit
12c5c1d3
authored
12 years ago
by
Reimar Döffinger
Committed by
Martin Storsjö
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
avstring: Add locale independent versions of some ctype.h functions
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
54b298fe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
doc/APIchanges
+3
-0
3 additions, 0 deletions
doc/APIchanges
libavutil/avstring.c
+22
-0
22 additions, 0 deletions
libavutil/avstring.c
libavutil/avstring.h
+20
-0
20 additions, 0 deletions
libavutil/avstring.h
libavutil/version.h
+1
-1
1 addition, 1 deletion
libavutil/version.h
with
46 additions
and
1 deletion
doc/APIchanges
+
3
−
0
View file @
12c5c1d3
...
@@ -13,6 +13,9 @@ libavutil: 2012-10-22
...
@@ -13,6 +13,9 @@ libavutil: 2012-10-22
API changes, most recent first:
API changes, most recent first:
2013-xx-xx - xxxxxxx - lavu 52.8.0 - avstring.h
Add av_isdigit, av_isgraph, av_isspace, av_isxdigit.
2013-xx-xx - xxxxxxx - lavfi 3.4.0 - avfiltergraph.h
2013-xx-xx - xxxxxxx - lavfi 3.4.0 - avfiltergraph.h
Add resample_lavr_opts to AVFilterGraph for setting libavresample options
Add resample_lavr_opts to AVFilterGraph for setting libavresample options
for auto-inserted resample filters.
for auto-inserted resample filters.
...
...
This diff is collapsed.
Click to expand it.
libavutil/avstring.c
+
22
−
0
View file @
12c5c1d3
...
@@ -213,6 +213,28 @@ const char *av_dirname(char *path)
...
@@ -213,6 +213,28 @@ const char *av_dirname(char *path)
return
path
;
return
path
;
}
}
int
av_isdigit
(
int
c
)
{
return
c
>=
'0'
&&
c
<=
'9'
;
}
int
av_isgraph
(
int
c
)
{
return
c
>
32
&&
c
<
127
;
}
int
av_isspace
(
int
c
)
{
return
c
==
' '
||
c
==
'\f'
||
c
==
'\n'
||
c
==
'\r'
||
c
==
'\t'
||
c
==
'\v'
;
}
int
av_isxdigit
(
int
c
)
{
c
=
av_tolower
(
c
);
return
av_isdigit
(
c
)
||
(
c
>=
'a'
&&
c
<=
'z'
);
}
#ifdef TEST
#ifdef TEST
int
main
(
void
)
int
main
(
void
)
...
...
This diff is collapsed.
Click to expand it.
libavutil/avstring.h
+
20
−
0
View file @
12c5c1d3
...
@@ -151,6 +151,21 @@ char *av_d2str(double d);
...
@@ -151,6 +151,21 @@ char *av_d2str(double d);
*/
*/
char
*
av_get_token
(
const
char
**
buf
,
const
char
*
term
);
char
*
av_get_token
(
const
char
**
buf
,
const
char
*
term
);
/**
* Locale-independent conversion of ASCII isdigit.
*/
int
av_isdigit
(
int
c
);
/**
* Locale-independent conversion of ASCII isgraph.
*/
int
av_isgraph
(
int
c
);
/**
* Locale-independent conversion of ASCII isspace.
*/
int
av_isspace
(
int
c
);
/**
/**
* Locale-independent conversion of ASCII characters to uppercase.
* Locale-independent conversion of ASCII characters to uppercase.
*/
*/
...
@@ -171,6 +186,11 @@ static inline int av_tolower(int c)
...
@@ -171,6 +186,11 @@ static inline int av_tolower(int c)
return
c
;
return
c
;
}
}
/**
* Locale-independent conversion of ASCII isxdigit.
*/
int
av_isxdigit
(
int
c
);
/*
/*
* Locale-independent case-insensitive compare.
* Locale-independent case-insensitive compare.
* @note This means only ASCII-range characters are case-insensitive
* @note This means only ASCII-range characters are case-insensitive
...
...
This diff is collapsed.
Click to expand it.
libavutil/version.h
+
1
−
1
View file @
12c5c1d3
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
*/
*/
#define LIBAVUTIL_VERSION_MAJOR 52
#define LIBAVUTIL_VERSION_MAJOR 52
#define LIBAVUTIL_VERSION_MINOR
7
#define LIBAVUTIL_VERSION_MINOR
8
#define LIBAVUTIL_VERSION_MICRO 0
#define LIBAVUTIL_VERSION_MICRO 0
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
...
...
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