Sponsored Content
Full Discussion: sed or awk editing help
Top Forums Shell Programming and Scripting sed or awk editing help Post 302468404 by ctsgnb on Tuesday 2nd of November 2010 03:55:00 PM
Old 11-02-2010
Quote:
Originally Posted by Scrutinizer
Which is consistent with my findings. There is not much difference between using several replace statement and using a loop, but there is a significant gain when groups are not being used.

You state this is obvious ("of course") why then didn't you use it in the first place, especially since your main concern is speed?

I do not think it was obvious at all and I cannot think of a good reason why grouping would have to take up so much time. I am glad I found out that it does though.
Maybe the parsing Step, indeed, when ambiguous grouping is specified, it goes through a kind of "auto completion" step.
Also maybe using a memory copy instead of a memory mapping?.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Editing File using awk/sed

Hello Awk Gurus, Can anyone of you help me with the below problem. I have got a file having data in below format pmFaultyTransportBlocks ----------------------- 9842993 pmFrmNoOfDiscRachFrames ----------------------- NULL pmNoRecRandomAccSuccess -----------------------... (4 Replies)
Discussion started by: Mohammed
4 Replies

2. Shell Programming and Scripting

Editing Commas in a textfile using sed

Hi guys task removing the last commas of 5th and 6th columns. The bug in the script is causing effect because of whitespaces around commas. I tried to delete white spaces first and running the above script. but still some where getting the results wrong. I already have a script to do this... (12 Replies)
Discussion started by: repinementer
12 Replies

3. Homework & Coursework Questions

String editing using sed? awk?

1. The problem statement, all variables and given/known data: Problem Statement for project: When an account is created on the CS Unix network, a public html directory is created in the account's home directory. A default web page is put into that directory. Some users replace or... (13 Replies)
Discussion started by: peage1475
13 Replies

4. Shell Programming and Scripting

problem in using sed command in editing a file

Hi all, I have a conf file, i want to update some entries in that conf file. Below is the code for that using a temporary file. sed '/workgroup=/ c\workgroup=Workgroup' /usr/local/netx.conf > /usr/local/netx.conf.tmp mv -f /usr/local/netx.conf.tmp /usr/local/netx.conf Sample contents of... (9 Replies)
Discussion started by: ranj14r
9 Replies

5. Shell Programming and Scripting

Comparison and editing of files using awk.(And also a possible bug in awk for loop?)

I have two files which I would like to compare and then manipulate in a way. File1: pictures.txt 1.1 1.3 dance.txt 1.2 1.4 treehouse.txt 1.3 1.5 File2: pictures.txt 1.5 ref2313 1.4 ref2345 1.3 ref5432 1.2 ref4244 dance.txt 1.6 ref2342 1.5 ref2352 1.4 ref0695 1.3 ref5738 1.2... (1 Reply)
Discussion started by: linuxkid
1 Replies

6. Shell Programming and Scripting

Line/Variable Editing for Awk sed Cut

Hello, i have a file, i open the file and read the line, i want to get the first item in the csv file and also teh third+6 item and wirte it to a new csv file. only problem is that using echo it takes TOO LONG: please help a newbie. below is my code: WorkingDir=$1 FileName=`cut -d ',' -f... (2 Replies)
Discussion started by: limamichelle
2 Replies

7. UNIX for Dummies Questions & Answers

sed editing help....

Hello all, I need some help with sed. seems like i cant get through it. So here is what i am trying. when i do ps -ef|grep bla blah ...like below...i get /u01/app/oracle/11g/bin/tnslsnr .... but i want to replace that string with something using sed. So basically i want to get rid of... (3 Replies)
Discussion started by: abdul.irfan2
3 Replies

8. UNIX for Dummies Questions & Answers

sed help finding and editing

With sed 1. I need to find a line that contains "DVM" and "73069". 2. I need to insert a double quote at the beginning of the first line of the file. These two have been driving me crazy for the last 45 minutes. Any help would be greatly appreciated. Thanks (3 Replies)
Discussion started by: nlassiter
3 Replies

9. Shell Programming and Scripting

editing file with awk cut and sed

HI All, I am new to unix. I have a file would like to do some editing by using awk, cut and sed. Could anyone help? This file contain 100 lines. There are one line for example: 2,"102343454",5060,"579668","579668","579668","SIP",,,"825922","035885221283026",1,268,"00:59:00.782 APR 17... (2 Replies)
Discussion started by: mimilaw
2 Replies

10. Shell Programming and Scripting

Editing files with sed or something similar

{ "AFafa": "FAFA","AFafa": "FAFA" "baseball":"soccer","wrestling":"dancing" "rhinos":"crocodiles","roles":"foodchain" } I need to insert a new line before the closing brackets "}" so that the final output looks like this: { "AFafa": "FAFA","AFafa": "FAFA"... (6 Replies)
Discussion started by: SkySmart
6 Replies
std::num_get< _CharT, _InIter >(3cxx)									     std::num_get< _CharT, _InIter >(3cxx)

NAME
std::num_get< _CharT, _InIter > - SYNOPSIS
Inherits std::locale::facet. Public Types typedef _CharT char_type typedef _InIter iter_type Public Member Functions num_get (size_t __refs=0) iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, bool &__v) const iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, void *&__v) const iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, long &__v) const iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned short &__v) const iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned int &__v) const iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned long &__v) const iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, long long &__v) const iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned long long &__v) const iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, float &__v) const iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, double &__v) const iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, long double &__v) const Static Public Attributes static locale::id id Protected Member Functions virtual ~num_get () iter_type _M_extract_float (iter_type, iter_type, ios_base &, ios_base::iostate &, string &) const template<typename _ValueT > iter_type _M_extract_int (iter_type, iter_type, ios_base &, ios_base::iostate &, _ValueT &) const template<typename _CharT2 > __gnu_cxx::__enable_if < __is_char< _CharT2 > ::__value, int >::__type _M_find (const _CharT2 *, size_t __len, _CharT2 __c) const " template<typename _CharT2 > __gnu_cxx::__enable_if <!__is_char< _CharT2 > ::__value, int >::__type _M_find (const _CharT2 *__zero, size_t __len, _CharT2 __c) const " virtual iter_type do_get (iter_type, iter_type, ios_base &, ios_base::iostate &, bool &) const virtual iter_type do_get (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, long &__v) const virtual iter_type do_get (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned short &__v) const virtual iter_type do_get (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned int &__v) const virtual iter_type do_get (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned long &__v) const virtual iter_type do_get (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, long long &__v) const virtual iter_type do_get (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned long long &__v) const virtual iter_type do_get (iter_type, iter_type, ios_base &, ios_base::iostate &__err, float &) const virtual iter_type do_get (iter_type, iter_type, ios_base &, ios_base::iostate &__err, double &) const virtual iter_type do_get (iter_type, iter_type, ios_base &, ios_base::iostate &__err, long double &) const virtual iter_type do_get (iter_type, iter_type, ios_base &, ios_base::iostate &__err, void *&) const Static Protected Member Functions static __c_locale _S_clone_c_locale (__c_locale &__cloc) throw () static void _S_create_c_locale (__c_locale &__cloc, const char *__s, __c_locale __old=0) static void _S_destroy_c_locale (__c_locale &__cloc) static __c_locale _S_get_c_locale () static const char * _S_get_c_name () throw () static __c_locale _S_lc_ctype_c_locale (__c_locale __cloc, const char *__s) Detailed Description template<typename _CharT, typename _InIter>class std::num_get< _CharT, _InIter > Primary class template num_get. This facet encapsulates the code to parse and return a number from a string. It is used by the istream numeric extraction operators. The num_get template uses protected virtual functions to provide the actual results. The public accessors forward the call to the virtual functions. These virtual functions are hooks for developers to implement the behavior they require from the num_get facet. Definition at line 1916 of file locale_facets.h. Member Typedef Documentation template<typename _CharT , typename _InIter > typedef _CharT std::num_get< _CharT, _InIter >::char_type Public typedefs. Definition at line 1922 of file locale_facets.h. template<typename _CharT , typename _InIter > typedef _InIter std::num_get< _CharT, _InIter >::iter_type Public typedefs. Definition at line 1923 of file locale_facets.h. Constructor &; Destructor Documentation template<typename _CharT , typename _InIter > std::num_get< _CharT, _InIter >::num_get (size_t__refs = 0) [inline], [explicit] Constructor performs initialization. This is the constructor provided by the standard. Parameters: refs Passed to the base facet class. Definition at line 1937 of file locale_facets.h. template<typename _CharT , typename _InIter > virtual std::num_get< _CharT, _InIter >::~num_get () [inline], [protected], [virtual] Destructor. Definition at line 2106 of file locale_facets.h. Member Function Documentation template<typename _CharT , typename _InIter > _InIter std::num_get< _CharT, _InIter >::do_get (iter_type__beg, iter_type__end, ios_base &__io, ios_base::iostate &__err, bool &__v) const [protected], [virtual] Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned. See Also: get() for more details. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 592 of file locale_facets.tcc. References std::ios_base::_M_getloc(), std::ios_base::boolalpha, std::ios_base::eofbit, std::ios_base::failbit, std::ios_base::flags(), and std::ios_base::goodbit. template<typename _CharT , typename _InIter > virtual iter_type std::num_get< _CharT, _InIter >::do_get (iter_type__beg, iter_type__end, ios_base &__io, ios_base::iostate &__err, long &__v) const [inline], [protected], [virtual] Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned. See Also: get() for more details. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 2174 of file locale_facets.h. template<typename _CharT , typename _InIter > virtual iter_type std::num_get< _CharT, _InIter >::do_get (iter_type__beg, iter_type__end, ios_base &__io, ios_base::iostate &__err, unsigned short &__v) const [inline], [protected], [virtual] Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned. See Also: get() for more details. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 2179 of file locale_facets.h. template<typename _CharT , typename _InIter > virtual iter_type std::num_get< _CharT, _InIter >::do_get (iter_type__beg, iter_type__end, ios_base &__io, ios_base::iostate &__err, unsigned int &__v) const [inline], [protected], [virtual] Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned. See Also: get() for more details. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 2184 of file locale_facets.h. template<typename _CharT , typename _InIter > virtual iter_type std::num_get< _CharT, _InIter >::do_get (iter_type__beg, iter_type__end, ios_base &__io, ios_base::iostate &__err, unsigned long &__v) const [inline], [protected], [virtual] Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned. See Also: get() for more details. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 2189 of file locale_facets.h. template<typename _CharT , typename _InIter > virtual iter_type std::num_get< _CharT, _InIter >::do_get (iter_type__beg, iter_type__end, ios_base &__io, ios_base::iostate &__err, long long &__v) const [inline], [protected], [virtual] Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned. See Also: get() for more details. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 2195 of file locale_facets.h. template<typename _CharT , typename _InIter > virtual iter_type std::num_get< _CharT, _InIter >::do_get (iter_type__beg, iter_type__end, ios_base &__io, ios_base::iostate &__err, unsigned long long &__v) const [inline], [protected], [virtual] Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned. See Also: get() for more details. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 2200 of file locale_facets.h. template<typename _CharT , typename _InIter > _InIter std::num_get< _CharT, _InIter >::do_get (iter_type__beg, iter_type__end, ios_base &__io, ios_base::iostate &__err, float &__v) const [protected], [virtual] Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned. See Also: get() for more details. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 688 of file locale_facets.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::c_str(), std::ios_base::eofbit, and std::basic_string< _CharT, _Traits, _Alloc >::reserve(). template<typename _CharT , typename _InIter > _InIter std::num_get< _CharT, _InIter >::do_get (iter_type__beg, iter_type__end, ios_base &__io, ios_base::iostate &__err, double &__v) const [protected], [virtual] Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned. See Also: get() for more details. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 703 of file locale_facets.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::c_str(), std::ios_base::eofbit, and std::basic_string< _CharT, _Traits, _Alloc >::reserve(). template<typename _CharT , typename _InIter > _InIter std::num_get< _CharT, _InIter >::do_get (iter_type__beg, iter_type__end, ios_base &__io, ios_base::iostate &__err, long double &__v) const [protected], [virtual] Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned. See Also: get() for more details. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 735 of file locale_facets.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::c_str(), std::ios_base::eofbit, and std::basic_string< _CharT, _Traits, _Alloc >::reserve(). template<typename _CharT , typename _InIter > _InIter std::num_get< _CharT, _InIter >::do_get (iter_type__beg, iter_type__end, ios_base &__io, ios_base::iostate &__err, void *&__v) const [protected], [virtual] Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned. See Also: get() for more details. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 750 of file locale_facets.tcc. References std::ios_base::basefield, std::ios_base::flags(), and std::ios_base::hex. template<typename _CharT , typename _InIter > iter_type std::num_get< _CharT, _InIter >::get (iter_type__in, iter_type__end, ios_base &__io, ios_base::iostate &__err, bool &__v) const [inline] Numeric parsing. Parses the input stream into the bool v. It does so by calling num_get::do_get(). If ios_base::boolalpha is set, attempts to read ctype<CharT>::truename() or ctype<CharT>::falsename(). Sets v to true or false if successful. Sets err to ios_base::failbit if reading the string fails. Sets err to ios_base::eofbit if the stream is emptied. If ios_base::boolalpha is not set, proceeds as with reading a long, except if the value is 1, sets v to true, if the value is 0, sets v to false, and otherwise set err to ios_base::failbit. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 1963 of file locale_facets.h. Referenced by std::basic_istream< _CharT, _Traits >::operator>>(). template<typename _CharT , typename _InIter > iter_type std::num_get< _CharT, _InIter >::get (iter_type__in, iter_type__end, ios_base &__io, ios_base::iostate &__err, long &__v) const [inline] Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get(). Parsing is affected by the flag settings in io. The basic parse is affected by the value of io.flags() & ios_base::basefield. If equal to ios_base::oct, parses like the scanf o specifier. Else if equal to ios_base::hex, parses like X specifier. Else if basefield equal to 0, parses like the i specifier. Otherwise, parses like d for signed and u for unsigned types. The matching type length modifier is also used. Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit. If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 1999 of file locale_facets.h. template<typename _CharT , typename _InIter > iter_type std::num_get< _CharT, _InIter >::get (iter_type__in, iter_type__end, ios_base &__io, ios_base::iostate &__err, unsigned short &__v) const [inline] Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get(). Parsing is affected by the flag settings in io. The basic parse is affected by the value of io.flags() & ios_base::basefield. If equal to ios_base::oct, parses like the scanf o specifier. Else if equal to ios_base::hex, parses like X specifier. Else if basefield equal to 0, parses like the i specifier. Otherwise, parses like d for signed and u for unsigned types. The matching type length modifier is also used. Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit. If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 2004 of file locale_facets.h. template<typename _CharT , typename _InIter > iter_type std::num_get< _CharT, _InIter >::get (iter_type__in, iter_type__end, ios_base &__io, ios_base::iostate &__err, unsigned int &__v) const [inline] Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get(). Parsing is affected by the flag settings in io. The basic parse is affected by the value of io.flags() & ios_base::basefield. If equal to ios_base::oct, parses like the scanf o specifier. Else if equal to ios_base::hex, parses like X specifier. Else if basefield equal to 0, parses like the i specifier. Otherwise, parses like d for signed and u for unsigned types. The matching type length modifier is also used. Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit. If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 2009 of file locale_facets.h. template<typename _CharT , typename _InIter > iter_type std::num_get< _CharT, _InIter >::get (iter_type__in, iter_type__end, ios_base &__io, ios_base::iostate &__err, unsigned long &__v) const [inline] Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get(). Parsing is affected by the flag settings in io. The basic parse is affected by the value of io.flags() & ios_base::basefield. If equal to ios_base::oct, parses like the scanf o specifier. Else if equal to ios_base::hex, parses like X specifier. Else if basefield equal to 0, parses like the i specifier. Otherwise, parses like d for signed and u for unsigned types. The matching type length modifier is also used. Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit. If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 2014 of file locale_facets.h. template<typename _CharT , typename _InIter > iter_type std::num_get< _CharT, _InIter >::get (iter_type__in, iter_type__end, ios_base &__io, ios_base::iostate &__err, long long &__v) const [inline] Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get(). Parsing is affected by the flag settings in io. The basic parse is affected by the value of io.flags() & ios_base::basefield. If equal to ios_base::oct, parses like the scanf o specifier. Else if equal to ios_base::hex, parses like X specifier. Else if basefield equal to 0, parses like the i specifier. Otherwise, parses like d for signed and u for unsigned types. The matching type length modifier is also used. Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit. If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 2020 of file locale_facets.h. template<typename _CharT , typename _InIter > iter_type std::num_get< _CharT, _InIter >::get (iter_type__in, iter_type__end, ios_base &__io, ios_base::iostate &__err, unsigned long long &__v) const [inline] Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get(). Parsing is affected by the flag settings in io. The basic parse is affected by the value of io.flags() & ios_base::basefield. If equal to ios_base::oct, parses like the scanf o specifier. Else if equal to ios_base::hex, parses like X specifier. Else if basefield equal to 0, parses like the i specifier. Otherwise, parses like d for signed and u for unsigned types. The matching type length modifier is also used. Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit. If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 2025 of file locale_facets.h. template<typename _CharT , typename _InIter > iter_type std::num_get< _CharT, _InIter >::get (iter_type__in, iter_type__end, ios_base &__io, ios_base::iostate &__err, float &__v) const [inline] Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get(). The input characters are parsed like the scanf g specifier. The matching type length modifier is also used. The decimal point character used is numpunct::decimal_point(). Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit. If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 2058 of file locale_facets.h. template<typename _CharT , typename _InIter > iter_type std::num_get< _CharT, _InIter >::get (iter_type__in, iter_type__end, ios_base &__io, ios_base::iostate &__err, double &__v) const [inline] Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get(). The input characters are parsed like the scanf g specifier. The matching type length modifier is also used. The decimal point character used is numpunct::decimal_point(). Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit. If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 2063 of file locale_facets.h. template<typename _CharT , typename _InIter > iter_type std::num_get< _CharT, _InIter >::get (iter_type__in, iter_type__end, ios_base &__io, ios_base::iostate &__err, long double &__v) const [inline] Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get(). The input characters are parsed like the scanf g specifier. The matching type length modifier is also used. The decimal point character used is numpunct::decimal_point(). Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit. If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 2068 of file locale_facets.h. template<typename _CharT , typename _InIter > iter_type std::num_get< _CharT, _InIter >::get (iter_type__in, iter_type__end, ios_base &__io, ios_base::iostate &__err, void *&__v) const [inline] Numeric parsing. Parses the input stream into the pointer variable v. It does so by calling num_get::do_get(). The input characters are parsed like the scanf p specifier. Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit. Note that the digit grouping effect for pointers is a bit ambiguous in the standard and shouldn't be relied on. See DR 344. If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied. Parameters: in Start of input stream. end End of input stream. io Source of locale and flags. err Error flags to set. v Value to format and insert. Returns: Iterator after reading. Definition at line 2100 of file locale_facets.h. Member Data Documentation template<typename _CharT , typename _InIter > locale::id std::num_get< _CharT, _InIter >::id [static] Numpunct facet id. Definition at line 1927 of file locale_facets.h. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012 std::num_get< _CharT, _InIter >(3cxx)
All times are GMT -4. The time now is 12:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy