Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
2ccfb71d
Commit
2ccfb71d
authored
Aug 11, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util/CharUtil: add ToLowerASCII()
parent
e8a5a9b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
CharUtil.hxx
src/util/CharUtil.hxx
+13
-0
No files found.
src/util/CharUtil.hxx
View file @
2ccfb71d
...
@@ -126,4 +126,17 @@ ToUpperASCII(char ch)
...
@@ -126,4 +126,17 @@ ToUpperASCII(char ch)
:
ch
;
:
ch
;
}
}
/**
* Convert the specified ASCII character (0x00..0x7f) to lower case.
* Unlike toupper(), it ignores the system locale.
*/
constexpr
static
inline
char
ToLowerASCII
(
char
ch
)
{
return
ch
>=
'A'
&&
ch
<=
'Z'
?
(
ch
+
(
'a'
-
'A'
))
:
ch
;
}
#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