Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
b34a7206
Commit
b34a7206
authored
7 years ago
by
Harris Hancock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MSVC's version of strcasecmp is _stricmp
parent
ae6b4452
master
v0.7.0
v0.6.1
v0.6.0
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
http.c++
c++/src/kj/compat/http.c++
+4
-0
No files found.
c++/src/kj/compat/http.c++
View file @
b34a7206
...
@@ -215,7 +215,11 @@ struct HeaderNameHash {
...
@@ -215,7 +215,11 @@ struct HeaderNameHash {
// TODO(perf): I wonder if we can beat strcasecmp() by masking bit 0x20 from each byte. We'd
// TODO(perf): I wonder if we can beat strcasecmp() by masking bit 0x20 from each byte. We'd
// need to prohibit one of the technically-legal characters '^' or '~' from header names
// need to prohibit one of the technically-legal characters '^' or '~' from header names
// since they'd otherwise be ambiguous, but otherwise there is no ambiguity.
// since they'd otherwise be ambiguous, but otherwise there is no ambiguity.
#if _MSC_VER
return
_stricmp
(
a
.
cStr
(),
b
.
cStr
())
==
0
;
#else
return
strcasecmp
(
a
.
cStr
(),
b
.
cStr
())
==
0
;
return
strcasecmp
(
a
.
cStr
(),
b
.
cStr
())
==
0
;
#endif
}
}
};
};
...
...
This diff is collapsed.
Click to expand it.
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