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
3bcd44c0
Commit
3bcd44c0
authored
Aug 11, 2008
by
Stephen M. Webb
Committed by
Stephen M. Webb
Aug 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Formatting fixes for include/tr1_impl/regex.
From-SVN: r138967
parent
4d5670aa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
106 additions
and
0 deletions
+106
-0
libstdc++-v3/ChangeLog
+8
-0
libstdc++-v3/include/tr1_impl/regex
+0
-0
libstdc++-v3/testsuite/tr1/7_regular_expressions/regex_traits/char/value.cc
+49
-0
libstdc++-v3/testsuite/tr1/7_regular_expressions/regex_traits/wchar_t/value.cc
+49
-0
No files found.
libstdc++-v3/ChangeLog
View file @
3bcd44c0
2008-08-11 Stephen M. Webb <stephenw@xandros.com>
* include/tr1_impl/regex: Formatting fixes.
* testsuite/tr1/7_regular_expressions/regex_traits/char/value.cc:
New test.
* testsuite/tr1/7_regular_expressions/regex_traits/wchar_t/value.cc:
New test.
2008-08-11 Paolo Carlini <paolo.carlini@oracle.com>
* config/locale/generic/c_locale.cc: Include <cstdio>.
...
...
libstdc++-v3/include/tr1_impl/regex
View file @
3bcd44c0
This diff is collapsed.
Click to expand it.
libstdc++-v3/testsuite/tr1/7_regular_expressions/regex_traits/char/value.cc
0 → 100644
View file @
3bcd44c0
// { dg-do run }
// 2008-08-11 Stephen M. Webb <stephen.webb@bregmasoft.com>
//
// Copyright (C) 2008 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along
// with this library; see the file COPYING. If not, write to the Free
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
// USA.
// tr1 [7.7] class template regex_traits value() function
#include <tr1/regex>
#include <testsuite_hooks.h>
// Tests the value() function of the regex_traits<char> class.
void
test01
()
{
bool
test
__attribute__
((
unused
))
=
true
;
std
::
tr1
::
regex_traits
<
char
>
t
;
VERIFY
(
t
.
value
(
'7'
,
8
)
==
7
);
VERIFY
(
t
.
value
(
'7'
,
10
)
==
7
);
VERIFY
(
t
.
value
(
'7'
,
16
)
==
7
);
VERIFY
(
t
.
value
(
'9'
,
8
)
==
-
1
);
VERIFY
(
t
.
value
(
'9'
,
10
)
==
9
);
VERIFY
(
t
.
value
(
'9'
,
16
)
==
9
);
VERIFY
(
t
.
value
(
'd'
,
8
)
==
-
1
);
VERIFY
(
t
.
value
(
'd'
,
10
)
==
-
1
);
VERIFY
(
t
.
value
(
'd'
,
16
)
==
13
);
}
int
main
()
{
test01
();
return
0
;
};
libstdc++-v3/testsuite/tr1/7_regular_expressions/regex_traits/wchar_t/value.cc
0 → 100644
View file @
3bcd44c0
// { dg-do run }
// 2008-08-11 Stephen M. Webb <stephen.webb@bregmasoft.com>
//
// Copyright (C) 2008 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along
// with this library; see the file COPYING. If not, write to the Free
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
// USA.
// tr1 [7.7] class template regex_traits value() function
#include <tr1/regex>
#include <testsuite_hooks.h>
// Tests the value() function of the regex_traits<char> class.
void
test01
()
{
bool
test
__attribute__
((
unused
))
=
true
;
std
::
tr1
::
regex_traits
<
char
>
t
;
VERIFY
(
t
.
value
(
'7'
,
8
)
==
7
);
VERIFY
(
t
.
value
(
'7'
,
10
)
==
7
);
VERIFY
(
t
.
value
(
'7'
,
16
)
==
7
);
VERIFY
(
t
.
value
(
'9'
,
8
)
==
-
1
);
VERIFY
(
t
.
value
(
'9'
,
10
)
==
9
);
VERIFY
(
t
.
value
(
'9'
,
16
)
==
9
);
VERIFY
(
t
.
value
(
'd'
,
8
)
==
-
1
);
VERIFY
(
t
.
value
(
'd'
,
10
)
==
-
1
);
VERIFY
(
t
.
value
(
'd'
,
16
)
==
13
);
}
int
main
()
{
test01
();
return
0
;
};
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