Author: sebor
Date: Mon Jan 29 11:46:55 2007
New Revision: 501162
URL: http://svn.apache.org/viewvc?view=rev&rev=501162
Log:
2007-01-29 Martin Sebor <[EMAIL PROTECTED]>
* _num_get.cc (_C_get): Added comments.
Modified:
incubator/stdcxx/trunk/include/loc/_num_get.cc
Modified: incubator/stdcxx/trunk/include/loc/_num_get.cc
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/loc/_num_get.cc?view=diff&rev=501162&r1=501161&r2=501162
==============================================================================
--- incubator/stdcxx/trunk/include/loc/_num_get.cc (original)
+++ incubator/stdcxx/trunk/include/loc/_num_get.cc Mon Jan 29 11:46:55 2007
@@ -6,16 +6,23 @@
*
***************************************************************************
*
- * Copyright (c) 1994-2005 Quovadx, Inc., acting through its Rogue Wave
- * Software division. Licensed under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the
- * License. You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0. Unless required by
- * applicable law or agreed to in writing, software distributed under
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
- * CONDITIONS OF ANY KIND, either express or implied. See the License
- * for the specific language governing permissions and limitations under
- * the License.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ *
+ * Copyright 2001-2006 Rogue Wave Software.
*
**************************************************************************/
@@ -521,8 +528,10 @@
__grpend - __grpbeg : __grpend - __pbuf - 1 - (_HexX != __hex_x);
if (__grpbeg && 0 == __len) {
- // fatal error: thousands_sep characters must be separated
- // by groups of one or more digits
+ // fatal error: according to the grammar in [locale.numpunct]
+ // thousands_sep characters must be separated by groups of one
+ // or more digits (i.e., valid input cannot start or end with
+ // a thousands_sep); this needs to be clarified in the text
__err |= _RW::__rw_failbit;
return __begin;
}