Sponsored Content
Full Discussion: Arrays
Top Forums Shell Programming and Scripting Arrays Post 302255146 by earlysame55 on Thursday 6th of November 2008 02:02:38 AM
Old 11-06-2008
Thanks Gee-money
 

10 More Discussions You Might Find Interesting

1. Web Development

PHP arrays in arrays

PHP question... I have an SQL query that's pulled back user IDs as a set of columns. Rather than IDs, I want to use their names. So I have an array of columns $col with values 1,7,3,12 etc and I've got an array $person with values "Fred", "Bert", "Tom" etc So what I want to do is display the... (3 Replies)
Discussion started by: JerryHone
3 Replies

2. UNIX for Dummies Questions & Answers

arrays how to?

Hello, I am some what of a newbie to awk scripting and I seem to be struggling with this problem. I know I need to use arrays but I can't figure out how to use them. I have an input file that looks like this; Name,Team,First Test, Second Test, Third Test Crystal,Red,5,17,22... (1 Reply)
Discussion started by: vlopez
1 Replies

3. HP-UX

Hitachi arrays to HP-UX 11.11

We have 2 servers (L1000 and rp7410) running 11.11. We would like to hook them up to either a Hitatchi AMS 2500 or Hitachi USPV via fiber channel. I need to what drivers I need for this and if it will work. Oh, they are using HP Tachyon XL2 Fiber Channel Mass Storage Adapters. Thanks, Bill (1 Reply)
Discussion started by: wsmcelroy
1 Replies

4. Shell Programming and Scripting

2d arrays in unix

hi everybody can anyone help me with usage of 2 dimensional arrays in unix. please provide a suitable example for accessing individual elements as well as all elements. Thanks (2 Replies)
Discussion started by: jpriyank
2 Replies

5. Shell Programming and Scripting

Using arrays in shell

I have three arrays. One is Master array and that has list of other array in config file. for e.g (for simplicity I have only defined array with 2 elements each) set +A MASTERARRAY SQLUPDATE_ONETIME SQLUPDATE_DAILY END_OF_ARRAY set +A SQLUPDATE_ONETIME update12 update22 END_OF_ARRAY... (4 Replies)
Discussion started by: anish
4 Replies

6. Programming

question about int arrays and file pointer arrays

if i declare both but don't input any variables what values will the int array and file pointer array have on default, and if i want to reset any of the elements of both arrays to default, should i just set it to 0 or NULL or what? (1 Reply)
Discussion started by: omega666
1 Replies

7. Shell Programming and Scripting

How can I use the arrays ?

Hi all, I have a file test1.txt with the below contents abc def ghj xyz I tried printing these values using arrays. Script tried : =========== set -A array1 `cat test1.txt` count=${#array1 } i=0 while do echo "element of array $array1" done (1 Reply)
Discussion started by: dnam9917
1 Replies

8. Programming

Arrays in C++

I've noticed something interesting in C++ programming. I've always done tricky stuff with pointers and references to have functions deal with arrays. Doing exercises again out of a C++ book has shown me an easier way, I didn't even know was there. It's weird to me. When dealing with arrays, it... (4 Replies)
Discussion started by: John Tate
4 Replies

9. Shell Programming and Scripting

Using arrays?

I have never used arrays before but I have a script like this: var1=$(for i in $(cat /tmp/jobs.021013);do $LIST -job $i -all | perl -ne 'print /.*(\bInfo.bptm\(pid=\d{3,5}).*/' | tr -d "(Info=regpid" | tr -d ')'; $LIST -job $i -all | cut -f7 -d','| sed -e "s/^\(*\)\(*\)\(*\)\(.*\)/\1... (2 Replies)
Discussion started by: newbie2010
2 Replies

10. UNIX for Dummies Questions & Answers

Arrays

Am using bash For eg: Suppose i have a array arr=(1 2 3 4 5 6 7 8 9 10 11 12) suppose i give input 5 to a script and script should able to print values greater than or equal to 5 like below: Input: 5 output: 5,6,7,8,9,10,11,12 (7 Replies)
Discussion started by: manid
7 Replies
std::moneypunct_byname< _CharT, _Intl >(3)		     Library Functions Manual			std::moneypunct_byname< _CharT, _Intl >(3)

NAME
std::moneypunct_byname< _CharT, _Intl > - SYNOPSIS
Inherits std::moneypunct< _CharT, _Intl >. Public Types enum { _S_minus, _S_zero, _S_end } typedef __moneypunct_cache < _CharT, _Intl > __cache_type" typedef _CharT char_type enum part { none, space, symbol, sign, value } typedef basic_string< _CharT > string_type Public Member Functions moneypunct_byname (const char *__s, size_t __refs=0) string_type curr_symbol () const char_type decimal_point () const int frac_digits () const string grouping () const string_type negative_sign () const string_type positive_sign () const char_type thousands_sep () const pattern pos_format () const pattern neg_format () const Static Public Member Functions static pattern _S_construct_pattern (char __precedes, char __space, char __posn) throw () Static Public Attributes static const char * _S_atoms static const pattern _S_default_pattern static locale::id id static const bool intl Protected Member Functions void _M_initialize_moneypunct (__c_locale __cloc=0, const char *__name=0) template<> void _M_initialize_moneypunct (__c_locale, const char *) template<> void _M_initialize_moneypunct (__c_locale, const char *) template<> void _M_initialize_moneypunct (__c_locale, const char *) template<> void _M_initialize_moneypunct (__c_locale, const char *) virtual string_type do_curr_symbol () const virtual char_type do_decimal_point () const virtual int do_frac_digits () const virtual string do_grouping () const virtual pattern do_neg_format () const virtual string_type do_negative_sign () const virtual pattern do_pos_format () const virtual string_type do_positive_sign () const virtual char_type do_thousands_sep () 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, bool _Intl>class std::moneypunct_byname< _CharT, _Intl > class moneypunct_byname [22.2.6.4]. Definition at line 1324 of file locale_facets_nonio.h. Member Function Documentation template<typename _CharT , bool _Intl> string_type std::moneypunct< _CharT, _Intl >::curr_symbol () const [inline], [inherited] Return currency symbol string. This function returns a string_type to use as a currency symbol. It does so by returning returning moneypunct<char_type>::do_curr_symbol(). Returns: string_type representing a currency symbol. Definition at line 1061 of file locale_facets_nonio.h. References std::moneypunct< _CharT, _Intl >::do_curr_symbol(). template<typename _CharT , bool _Intl> char_type std::moneypunct< _CharT, _Intl >::decimal_point () const [inline], [inherited] Return decimal point character. This function returns a char_type to use as a decimal point. It does so by returning returning moneypunct<char_type>::do_decimal_point(). Returns: char_type representing a decimal point. Definition at line 1005 of file locale_facets_nonio.h. References std::moneypunct< _CharT, _Intl >::do_decimal_point(). template<typename _CharT , bool _Intl> virtual string_type std::moneypunct< _CharT, _Intl >::do_curr_symbol () const [inline], [protected], [virtual], [inherited] Return currency symbol string. This function returns a string_type to use as a currency symbol. This function is a hook for derived classes to change the value returned. See Also: curr_symbol() for details. Returns: string_type representing a currency symbol. Definition at line 1207 of file locale_facets_nonio.h. Referenced by std::moneypunct< _CharT, _Intl >::curr_symbol(). template<typename _CharT , bool _Intl> virtual char_type std::moneypunct< _CharT, _Intl >::do_decimal_point () const [inline], [protected], [virtual], [inherited] Return decimal point character. Returns a char_type to use as a decimal point. This function is a hook for derived classes to change the value returned. Returns: char_type representing a decimal point. Definition at line 1169 of file locale_facets_nonio.h. Referenced by std::moneypunct< _CharT, _Intl >::decimal_point(). template<typename _CharT , bool _Intl> virtual int std::moneypunct< _CharT, _Intl >::do_frac_digits () const [inline], [protected], [virtual], [inherited] Return number of digits in fraction. This function returns the exact number of digits that make up the fractional part of a money amount. This function is a hook for derived classes to change the value returned. See Also: frac_digits() for details. Returns: Number of digits in amount fraction. Definition at line 1247 of file locale_facets_nonio.h. Referenced by std::moneypunct< _CharT, _Intl >::frac_digits(). template<typename _CharT , bool _Intl> virtual string std::moneypunct< _CharT, _Intl >::do_grouping () const [inline], [protected], [virtual], [inherited] Return grouping specification. Returns a string representing groupings for the integer part of a number. This function is a hook for derived classes to change the value returned. See Also: grouping() for details. Returns: String representing grouping specification. Definition at line 1194 of file locale_facets_nonio.h. Referenced by std::moneypunct< _CharT, _Intl >::grouping(). template<typename _CharT , bool _Intl> virtual pattern std::moneypunct< _CharT, _Intl >::do_neg_format () const [inline], [protected], [virtual], [inherited] Return pattern for money values. This function returns a pattern describing the formatting of a negative valued money amount. This function is a hook for derived classes to change the value returned. See Also: neg_format() for details. Returns: Pattern for money values. Definition at line 1275 of file locale_facets_nonio.h. Referenced by std::moneypunct< _CharT, _Intl >::neg_format(). template<typename _CharT , bool _Intl> virtual string_type std::moneypunct< _CharT, _Intl >::do_negative_sign () const [inline], [protected], [virtual], [inherited] Return negative sign string. This function returns a string_type to use as a sign for negative amounts. This function is a hook for derived classes to change the value returned. See Also: negative_sign() for details. Returns: string_type representing a negative sign. Definition at line 1233 of file locale_facets_nonio.h. Referenced by std::moneypunct< _CharT, _Intl >::negative_sign(). template<typename _CharT , bool _Intl> virtual pattern std::moneypunct< _CharT, _Intl >::do_pos_format () const [inline], [protected], [virtual], [inherited] Return pattern for money values. This function returns a pattern describing the formatting of a positive valued money amount. This function is a hook for derived classes to change the value returned. See Also: pos_format() for details. Returns: Pattern for money values. Definition at line 1261 of file locale_facets_nonio.h. Referenced by std::moneypunct< _CharT, _Intl >::pos_format(). template<typename _CharT , bool _Intl> virtual string_type std::moneypunct< _CharT, _Intl >::do_positive_sign () const [inline], [protected], [virtual], [inherited] Return positive sign string. This function returns a string_type to use as a sign for positive amounts. This function is a hook for derived classes to change the value returned. See Also: positive_sign() for details. Returns: string_type representing a positive sign. Definition at line 1220 of file locale_facets_nonio.h. Referenced by std::moneypunct< _CharT, _Intl >::positive_sign(). template<typename _CharT , bool _Intl> virtual char_type std::moneypunct< _CharT, _Intl >::do_thousands_sep () const [inline], [protected], [virtual], [inherited] Return thousands separator character. Returns a char_type to use as a thousands separator. This function is a hook for derived classes to change the value returned. Returns: char_type representing a thousands separator. Definition at line 1181 of file locale_facets_nonio.h. Referenced by std::moneypunct< _CharT, _Intl >::thousands_sep(). template<typename _CharT , bool _Intl> int std::moneypunct< _CharT, _Intl >::frac_digits () const [inline], [inherited] Return number of digits in fraction. This function returns the exact number of digits that make up the fractional part of a money amount. It does so by returning returning moneypunct<char_type>::do_frac_digits(). The fractional part of a money amount is optional. But if it is present, there must be frac_digits() digits. Returns: Number of digits in amount fraction. Definition at line 1111 of file locale_facets_nonio.h. References std::moneypunct< _CharT, _Intl >::do_frac_digits(). template<typename _CharT , bool _Intl> string std::moneypunct< _CharT, _Intl >::grouping () const [inline], [inherited] Return grouping specification. This function returns a string representing groupings for the integer part of an amount. Groupings indicate where thousands separators should be inserted. Each char in the return string is interpret as an integer rather than a character. These numbers represent the number of digits in a group. The first char in the string represents the number of digits in the least significant group. If a char is negative, it indicates an unlimited number of digits for the group. If more chars from the string are required to group a number, the last char is used repeatedly. For example, if the grouping() returns 0302 and is applied to the number 123456789, this corresponds to 12,34,56,789. Note that if the string was 32, this would put more than 50 digits into the least significant group if the character set is ASCII. The string is returned by calling moneypunct<char_type>::do_grouping(). Returns: string representing grouping specification. Definition at line 1048 of file locale_facets_nonio.h. References std::moneypunct< _CharT, _Intl >::do_grouping(). template<typename _CharT , bool _Intl> pattern std::moneypunct< _CharT, _Intl >::neg_format () const [inline], [inherited] Return pattern for money values. This function returns a pattern describing the formatting of a positive or negative valued money amount. It does so by returning returning moneypunct<char_type>::do_pos_format() or moneypunct<char_type>::do_neg_format(). The pattern has 4 fields describing the ordering of symbol, sign, value, and none or space. There must be one of each in the pattern. The none and space enums may not appear in the first field and space may not appear in the final field. The parts of a money string must appear in the order indicated by the fields of the pattern. The symbol field indicates that the value of curr_symbol() may be present. The sign field indicates that the value of positive_sign() or negative_sign() must be present. The value field indicates that the absolute value of the money amount is present. none indicates 0 or more whitespace characters, except at the end, where it permits no whitespace. space indicates that 1 or more whitespace characters must be present. For example, for the US locale and pos_format() pattern {symbol,sign,value,none}, curr_symbol() == '$' positive_sign() == '+', and value 10.01, and options set to force the symbol, the corresponding string is $+10.01. Returns: Pattern for money values. Definition at line 1151 of file locale_facets_nonio.h. References std::moneypunct< _CharT, _Intl >::do_neg_format(). template<typename _CharT , bool _Intl> string_type std::moneypunct< _CharT, _Intl >::negative_sign () const [inline], [inherited] Return negative sign string. This function returns a string_type to use as a sign for negative amounts. It does so by returning returning moneypunct<char_type>::do_negative_sign(). If the return value contains more than one character, the first character appears in the position indicated by neg_format() and the remainder appear at the end of the formatted string. Returns: string_type representing a negative sign. Definition at line 1095 of file locale_facets_nonio.h. References std::moneypunct< _CharT, _Intl >::do_negative_sign(). template<typename _CharT , bool _Intl> pattern std::moneypunct< _CharT, _Intl >::pos_format () const [inline], [inherited] Return pattern for money values. This function returns a pattern describing the formatting of a positive or negative valued money amount. It does so by returning returning moneypunct<char_type>::do_pos_format() or moneypunct<char_type>::do_neg_format(). The pattern has 4 fields describing the ordering of symbol, sign, value, and none or space. There must be one of each in the pattern. The none and space enums may not appear in the first field and space may not appear in the final field. The parts of a money string must appear in the order indicated by the fields of the pattern. The symbol field indicates that the value of curr_symbol() may be present. The sign field indicates that the value of positive_sign() or negative_sign() must be present. The value field indicates that the absolute value of the money amount is present. none indicates 0 or more whitespace characters, except at the end, where it permits no whitespace. space indicates that 1 or more whitespace characters must be present. For example, for the US locale and pos_format() pattern {symbol,sign,value,none}, curr_symbol() == '$' positive_sign() == '+', and value 10.01, and options set to force the symbol, the corresponding string is $+10.01. Returns: Pattern for money values. Definition at line 1147 of file locale_facets_nonio.h. References std::moneypunct< _CharT, _Intl >::do_pos_format(). template<typename _CharT , bool _Intl> string_type std::moneypunct< _CharT, _Intl >::positive_sign () const [inline], [inherited] Return positive sign string. This function returns a string_type to use as a sign for positive amounts. It does so by returning returning moneypunct<char_type>::do_positive_sign(). If the return value contains more than one character, the first character appears in the position indicated by pos_format() and the remainder appear at the end of the formatted string. Returns: string_type representing a positive sign. Definition at line 1078 of file locale_facets_nonio.h. References std::moneypunct< _CharT, _Intl >::do_positive_sign(). template<typename _CharT , bool _Intl> char_type std::moneypunct< _CharT, _Intl >::thousands_sep () const [inline], [inherited] Return thousands separator character. This function returns a char_type to use as a thousands separator. It does so by returning returning moneypunct<char_type>::do_thousands_sep(). Returns: char_type representing a thousands separator. Definition at line 1018 of file locale_facets_nonio.h. References std::moneypunct< _CharT, _Intl >::do_thousands_sep(). Member Data Documentation template<typename _CharT , bool _Intl> locale::id std::moneypunct< _CharT, _Intl >::id [static], [inherited] Numpunct facet id. Definition at line 953 of file locale_facets_nonio.h. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Jun 10 2014 std::moneypunct_byname< _CharT, _Intl >(3)
All times are GMT -4. The time now is 02:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy