Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
0ec56ba3
Commit
0ec56ba3
authored
Jun 17, 2005
by
Jonathan Wakely
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* docs/html/21_strings/gotw29a.txt: Update code to corrected version.
From-SVN: r101130
parent
853a4203
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
libstdc++-v3/ChangeLog
+4
-0
libstdc++-v3/docs/html/21_strings/gotw29a.txt
+5
-1
No files found.
libstdc++-v3/ChangeLog
View file @
0ec56ba3
2005-06-17 Jonathan Wakely <redi@gcc.gnu.org>
* docs/html/21_strings/gotw29a.txt: Update code to corrected version.
2005-06-17 Jakub Jelinek <jakub@redhat.com>
Benjamin Kosnik <bkoz@redhat.com>
...
...
libstdc++-v3/docs/html/21_strings/gotw29a.txt
View file @
0ec56ba3
...
...
@@ -119,10 +119,14 @@ the easiest way:
while( n-- > 0 && tolower(*s) != tolower(a) ) {
++s;
}
return
s
;
return
n >= 0 ? s : 0
;
}
};
[N.B. A bug in the original code has been fixed for the
GCC documentation, the corrected code was taken from
Herb Sutter's book, Exceptional C++]
And finally, the key that brings it all together:
typedef basic_string<char, ci_char_traits> ci_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