diff options
Diffstat (limited to 'doc/gawk.info')
-rw-r--r-- | doc/gawk.info | 1046 |
1 files changed, 551 insertions, 495 deletions
diff --git a/doc/gawk.info b/doc/gawk.info index 973af87c..c39afa4f 100644 --- a/doc/gawk.info +++ b/doc/gawk.info @@ -4136,6 +4136,54 @@ that you can define a variable to be a number or a string: str = "hi" String variable re = /foo/ Wrong! re is the result of $0 ~ /foo/ + For a number of more advanced use cases (described later on in this +Info file), it would be nice to have regexp constants that are "strongly +typed"; in other words, that denote a regexp useful for matching, and +not an expression. + + 'gawk' provides this feature. A strongly typed regexp constant looks +almost like a regular regexp constant, except that it is preceded by an +'@' sign: + + re = @/foo/ Regexp variable + + Strongly typed regexp constants _cannot_ be used eveywhere that a +regular regexp constant can, because this would make the language even +more confusing. Instead, you may use them only in certain contexts: + + * On the righthand side of the '~' and '!~' operators: 'some_var ~ + @/foo/' (*note Regexp Usage::). + + * In the 'case' part of a 'switch' statement (*note Switch + Statement::). + + * As an argument to one of the built-in functions that accept regexp + constants: 'gensub()', 'gsub()', 'match()', 'patsplit()', + 'split()', and 'sub()' (*note String Functions::). + + * As a parameter in a call to a user-defined function (*note + User-defined::). + + * On the righthand side of an assignment to a variable: 'some_var = + @/foo/'. In this case, the type of 'some_var' is regexp. + Additionally, 'some_var' can be used with '~' and '!~', passed to + one of the built-in functions listed above, or passed as a + parameter to a user-defined function. + + You may use the 'typeof()' built-in function (*note Type Functions::) +to determine if a variable or function parameter is a regexp variable. + + The true power of this feature comes from the ability to create +variables that have regexp type. Such variables can be passed on to +user-defined functions, without the confusing aspects of computed +regular expressions created from strings or string constants. They may +also be passed through indirect function calls (*note Indirect Calls::) +onto the built-in functions that accept regexp constants. + + When used in numeric conversions, strongly typed regexp variables +convert to zero. When used in string conversions, they convert to the +string value of the original regexp text. + File: gawk.info, Node: Regexp Summary, Prev: Strong Regexp Constants, Up: Regexp @@ -4173,6 +4221,9 @@ File: gawk.info, Node: Regexp Summary, Prev: Strong Regexp Constants, Up: Reg sensitivity of regexp matching. In other 'awk' versions, use 'tolower()' or 'toupper()'. + * Strongly typed regexp constants ('@/.../') enable certain advanced + use cases to be described later on in the Info file. + File: gawk.info, Node: Reading Files, Next: Printing, Prev: Regexp, Up: Top @@ -13567,6 +13618,10 @@ contexts. '"array"' X is an array. + '"regexp"' + X is a strongly typed regexp (*note Strong Regexp + Constants::). + '"number"' X is a number. @@ -13613,7 +13668,8 @@ parameter is an array or not. turning it into a scalar. The 'typeof()' function is general; it allows you to determine if a -variable or function parameter is a scalar, an array. +variable or function parameter is a scalar, an array, or a strongly +typed regexp. 'isarray()' is deprecated; you should use 'typeof()' instead. You should replace any existing uses of 'isarray(var)' in your code with @@ -35347,499 +35403,499 @@ Node: Case-sensitivity185993 Ref: Case-sensitivity-Footnote-1188889 Ref: Case-sensitivity-Footnote-2189124 Node: Strong Regexp Constants189232 -Node: Regexp Summary190021 -Node: Reading Files191496 -Node: Records193659 -Node: awk split records194392 -Node: gawk split records199323 -Ref: gawk split records-Footnote-1203863 -Node: Fields203900 -Node: Nonconstant Fields206641 -Ref: Nonconstant Fields-Footnote-1208877 -Node: Changing Fields209081 -Node: Field Separators215009 -Node: Default Field Splitting217707 -Node: Regexp Field Splitting218825 -Node: Single Character Fields222178 -Node: Command Line Field Separator223238 -Node: Full Line Fields226456 -Ref: Full Line Fields-Footnote-1227978 -Ref: Full Line Fields-Footnote-2228024 -Node: Field Splitting Summary228125 -Node: Constant Size230199 -Node: Splitting By Content234777 -Ref: Splitting By Content-Footnote-1238748 -Node: Multiple Line238911 -Ref: Multiple Line-Footnote-1244793 -Node: Getline244972 -Node: Plain Getline247439 -Node: Getline/Variable250078 -Node: Getline/File251227 -Node: Getline/Variable/File252613 -Ref: Getline/Variable/File-Footnote-1254216 -Node: Getline/Pipe254304 -Node: Getline/Variable/Pipe257009 -Node: Getline/Coprocess258142 -Node: Getline/Variable/Coprocess259407 -Node: Getline Notes260147 -Node: Getline Summary262942 -Ref: table-getline-variants263364 -Node: Read Timeout264112 -Ref: Read Timeout-Footnote-1268018 -Node: Retrying Input268076 -Node: Command-line directories269275 -Node: Input Summary270181 -Node: Input Exercises273353 -Node: Printing274081 -Node: Print275915 -Node: Print Examples277372 -Node: Output Separators280152 -Node: OFMT282169 -Node: Printf283525 -Node: Basic Printf284310 -Node: Control Letters285884 -Node: Format Modifiers289872 -Node: Printf Examples295887 -Node: Redirection298373 -Node: Special FD305214 -Ref: Special FD-Footnote-1308382 -Node: Special Files308456 -Node: Other Inherited Files309073 -Node: Special Network310074 -Node: Special Caveats310934 -Node: Close Files And Pipes311883 -Ref: table-close-pipe-return-values318790 -Ref: Close Files And Pipes-Footnote-1319573 -Ref: Close Files And Pipes-Footnote-2319721 -Node: Nonfatal319873 -Node: Output Summary322198 -Node: Output Exercises323420 -Node: Expressions324099 -Node: Values325287 -Node: Constants325965 -Node: Scalar Constants326656 -Ref: Scalar Constants-Footnote-1327520 -Node: Nondecimal-numbers327770 -Node: Regexp Constants330783 -Node: Using Constant Regexps331309 -Node: Variables334472 -Node: Using Variables335129 -Node: Assignment Options337039 -Node: Conversion338912 -Node: Strings And Numbers339436 -Ref: Strings And Numbers-Footnote-1342499 -Node: Locale influences conversions342608 -Ref: table-locale-affects345366 -Node: All Operators345984 -Node: Arithmetic Ops346613 -Node: Concatenation349119 -Ref: Concatenation-Footnote-1351966 -Node: Assignment Ops352073 -Ref: table-assign-ops357064 -Node: Increment Ops358377 -Node: Truth Values and Conditions361837 -Node: Truth Values362911 -Node: Typing and Comparison363959 -Node: Variable Typing364779 -Node: Comparison Operators368403 -Ref: table-relational-ops368822 -Node: POSIX String Comparison372317 -Ref: POSIX String Comparison-Footnote-1374012 -Ref: POSIX String Comparison-Footnote-2374151 -Node: Boolean Ops374235 -Ref: Boolean Ops-Footnote-1378717 -Node: Conditional Exp378809 -Node: Function Calls380545 -Node: Precedence384422 -Node: Locales388081 -Node: Expressions Summary389713 -Node: Patterns and Actions392286 -Node: Pattern Overview393406 -Node: Regexp Patterns395083 -Node: Expression Patterns395625 -Node: Ranges399406 -Node: BEGIN/END402514 -Node: Using BEGIN/END403275 -Ref: Using BEGIN/END-Footnote-1406011 -Node: I/O And BEGIN/END406117 -Node: BEGINFILE/ENDFILE408431 -Node: Empty411338 -Node: Using Shell Variables411655 -Node: Action Overview413929 -Node: Statements416254 -Node: If Statement418102 -Node: While Statement419597 -Node: Do Statement421625 -Node: For Statement422773 -Node: Switch Statement425931 -Node: Break Statement428317 -Node: Continue Statement430409 -Node: Next Statement432236 -Node: Nextfile Statement434619 -Node: Exit Statement437271 -Node: Built-in Variables439674 -Node: User-modified440807 -Node: Auto-set448393 -Ref: Auto-set-Footnote-1463046 -Ref: Auto-set-Footnote-2463252 -Node: ARGC and ARGV463308 -Node: Pattern Action Summary467521 -Node: Arrays469951 -Node: Array Basics471280 -Node: Array Intro472124 -Ref: figure-array-elements474099 -Ref: Array Intro-Footnote-1476803 -Node: Reference to Elements476931 -Node: Assigning Elements479395 -Node: Array Example479886 -Node: Scanning an Array481645 -Node: Controlling Scanning484667 -Ref: Controlling Scanning-Footnote-1490066 -Node: Numeric Array Subscripts490382 -Node: Uninitialized Subscripts492566 -Node: Delete494185 -Ref: Delete-Footnote-1496937 -Node: Multidimensional496994 -Node: Multiscanning500089 -Node: Arrays of Arrays501680 -Node: Arrays Summary506447 -Node: Functions508540 -Node: Built-in509578 -Node: Calling Built-in510659 -Node: Numeric Functions512655 -Ref: Numeric Functions-Footnote-1517488 -Ref: Numeric Functions-Footnote-2517845 -Ref: Numeric Functions-Footnote-3517893 -Node: String Functions518165 -Ref: String Functions-Footnote-1541669 -Ref: String Functions-Footnote-2541797 -Ref: String Functions-Footnote-3542045 -Node: Gory Details542132 -Ref: table-sub-escapes543923 -Ref: table-sub-proposed545442 -Ref: table-posix-sub546805 -Ref: table-gensub-escapes548346 -Ref: Gory Details-Footnote-1549169 -Node: I/O Functions549323 -Ref: table-system-return-values555905 -Ref: I/O Functions-Footnote-1557885 -Ref: I/O Functions-Footnote-2558033 -Node: Time Functions558153 -Ref: Time Functions-Footnote-1568658 -Ref: Time Functions-Footnote-2568726 -Ref: Time Functions-Footnote-3568884 -Ref: Time Functions-Footnote-4568995 -Ref: Time Functions-Footnote-5569107 -Ref: Time Functions-Footnote-6569334 -Node: Bitwise Functions569600 -Ref: table-bitwise-ops570194 -Ref: Bitwise Functions-Footnote-1574532 -Node: Type Functions574705 -Node: I18N Functions577237 -Node: User-defined578888 -Node: Definition Syntax579693 -Ref: Definition Syntax-Footnote-1585380 -Node: Function Example585451 -Ref: Function Example-Footnote-1588373 -Node: Function Caveats588395 -Node: Calling A Function588913 -Node: Variable Scope589871 -Node: Pass By Value/Reference592865 -Node: Return Statement596364 -Node: Dynamic Typing599343 -Node: Indirect Calls600273 -Ref: Indirect Calls-Footnote-1610524 -Node: Functions Summary610652 -Node: Library Functions613357 -Ref: Library Functions-Footnote-1616964 -Ref: Library Functions-Footnote-2617107 -Node: Library Names617278 -Ref: Library Names-Footnote-1620738 -Ref: Library Names-Footnote-2620961 -Node: General Functions621047 -Node: Strtonum Function622150 -Node: Assert Function625172 -Node: Round Function628498 -Node: Cliff Random Function630039 -Node: Ordinal Functions631055 -Ref: Ordinal Functions-Footnote-1634118 -Ref: Ordinal Functions-Footnote-2634370 -Node: Join Function634580 -Ref: Join Function-Footnote-1636350 -Node: Getlocaltime Function636550 -Node: Readfile Function640292 -Node: Shell Quoting642264 -Node: Data File Management643665 -Node: Filetrans Function644297 -Node: Rewind Function648393 -Node: File Checking650299 -Ref: File Checking-Footnote-1651633 -Node: Empty Files651834 -Node: Ignoring Assigns653813 -Node: Getopt Function655363 -Ref: Getopt Function-Footnote-1666832 -Node: Passwd Functions667032 -Ref: Passwd Functions-Footnote-1675871 -Node: Group Functions675959 -Ref: Group Functions-Footnote-1683856 -Node: Walking Arrays684063 -Node: Library Functions Summary687071 -Node: Library Exercises688477 -Node: Sample Programs688942 -Node: Running Examples689712 -Node: Clones690440 -Node: Cut Program691664 -Node: Egrep Program701593 -Ref: Egrep Program-Footnote-1709105 -Node: Id Program709215 -Node: Split Program712895 -Ref: Split Program-Footnote-1716354 -Node: Tee Program716483 -Node: Uniq Program719273 -Node: Wc Program726699 -Ref: Wc Program-Footnote-1730954 -Node: Miscellaneous Programs731048 -Node: Dupword Program732261 -Node: Alarm Program734291 -Node: Translate Program739146 -Ref: Translate Program-Footnote-1743711 -Node: Labels Program743981 -Ref: Labels Program-Footnote-1747332 -Node: Word Sorting747416 -Node: History Sorting751488 -Node: Extract Program753323 -Node: Simple Sed760852 -Node: Igawk Program763926 -Ref: Igawk Program-Footnote-1778257 -Ref: Igawk Program-Footnote-2778459 -Ref: Igawk Program-Footnote-3778581 -Node: Anagram Program778696 -Node: Signature Program781758 -Node: Programs Summary783005 -Node: Programs Exercises784219 -Ref: Programs Exercises-Footnote-1788348 -Node: Advanced Features788439 -Node: Nondecimal Data790429 -Node: Array Sorting792020 -Node: Controlling Array Traversal792720 -Ref: Controlling Array Traversal-Footnote-1801087 -Node: Array Sorting Functions801205 -Ref: Array Sorting Functions-Footnote-1806296 -Node: Two-way I/O806492 -Ref: Two-way I/O-Footnote-1813042 -Ref: Two-way I/O-Footnote-2813229 -Node: TCP/IP Networking813311 -Node: Profiling816429 -Ref: Profiling-Footnote-1824922 -Node: Advanced Features Summary825245 -Node: Internationalization827089 -Node: I18N and L10N828569 -Node: Explaining gettext829256 -Ref: Explaining gettext-Footnote-1835148 -Ref: Explaining gettext-Footnote-2835333 -Node: Programmer i18n835498 -Ref: Programmer i18n-Footnote-1840353 -Node: Translator i18n840402 -Node: String Extraction841196 -Ref: String Extraction-Footnote-1842328 -Node: Printf Ordering842414 -Ref: Printf Ordering-Footnote-1845200 -Node: I18N Portability845264 -Ref: I18N Portability-Footnote-1847720 -Node: I18N Example847783 -Ref: I18N Example-Footnote-1850589 -Node: Gawk I18N850662 -Node: I18N Summary851307 -Node: Debugger852648 -Node: Debugging853670 -Node: Debugging Concepts854111 -Node: Debugging Terms855920 -Node: Awk Debugging858495 -Node: Sample Debugging Session859401 -Node: Debugger Invocation859935 -Node: Finding The Bug861321 -Node: List of Debugger Commands867799 -Node: Breakpoint Control869132 -Node: Debugger Execution Control872826 -Node: Viewing And Changing Data876188 -Node: Execution Stack879562 -Node: Debugger Info881199 -Node: Miscellaneous Debugger Commands885270 -Node: Readline Support890358 -Node: Limitations891254 -Ref: Limitations-Footnote-1895485 -Node: Debugging Summary895536 -Node: Arbitrary Precision Arithmetic896815 -Node: Computer Arithmetic898231 -Ref: table-numeric-ranges901822 -Ref: Computer Arithmetic-Footnote-1902544 -Node: Math Definitions902601 -Ref: table-ieee-formats905915 -Ref: Math Definitions-Footnote-1906518 -Node: MPFR features906623 -Node: FP Math Caution908340 -Ref: FP Math Caution-Footnote-1909412 -Node: Inexactness of computations909781 -Node: Inexact representation910741 -Node: Comparing FP Values912101 -Node: Errors accumulate913183 -Node: Getting Accuracy914616 -Node: Try To Round917326 -Node: Setting precision918225 -Ref: table-predefined-precision-strings918922 -Node: Setting the rounding mode920752 -Ref: table-gawk-rounding-modes921126 -Ref: Setting the rounding mode-Footnote-1924534 -Node: Arbitrary Precision Integers924713 -Ref: Arbitrary Precision Integers-Footnote-1929630 -Node: POSIX Floating Point Problems929779 -Ref: POSIX Floating Point Problems-Footnote-1933661 -Node: Floating point summary933699 -Node: Dynamic Extensions935889 -Node: Extension Intro937442 -Node: Plugin License938708 -Node: Extension Mechanism Outline939505 -Ref: figure-load-extension939944 -Ref: figure-register-new-function941509 -Ref: figure-call-new-function942601 -Node: Extension API Description944663 -Node: Extension API Functions Introduction946195 -Node: General Data Types951054 -Ref: General Data Types-Footnote-1957009 -Node: Memory Allocation Functions957308 -Ref: Memory Allocation Functions-Footnote-1960153 -Node: Constructor Functions960252 -Node: Registration Functions961997 -Node: Extension Functions962682 -Node: Exit Callback Functions965305 -Node: Extension Version String966555 -Node: Input Parsers967218 -Node: Output Wrappers977100 -Node: Two-way processors981612 -Node: Printing Messages983877 -Ref: Printing Messages-Footnote-1985048 -Node: Updating ERRNO985201 -Node: Requesting Values985940 -Ref: table-value-types-returned986677 -Node: Accessing Parameters987560 -Node: Symbol Table Access988795 -Node: Symbol table by name989307 -Node: Symbol table by cookie991328 -Ref: Symbol table by cookie-Footnote-1995480 -Node: Cached values995544 -Ref: Cached values-Footnote-1999051 -Node: Array Manipulation999142 -Ref: Array Manipulation-Footnote-11000233 -Node: Array Data Types1000270 -Ref: Array Data Types-Footnote-11002928 -Node: Array Functions1003020 -Node: Flattening Arrays1006878 -Node: Creating Arrays1013786 -Node: Redirection API1018555 -Node: Extension API Variables1021386 -Node: Extension Versioning1022019 -Ref: gawk-api-version1022456 -Node: Extension API Informational Variables1024212 -Node: Extension API Boilerplate1025276 -Node: Finding Extensions1029090 -Node: Extension Example1029649 -Node: Internal File Description1030447 -Node: Internal File Ops1034527 -Ref: Internal File Ops-Footnote-11046289 -Node: Using Internal File Ops1046429 -Ref: Using Internal File Ops-Footnote-11048812 -Node: Extension Samples1049086 -Node: Extension Sample File Functions1050615 -Node: Extension Sample Fnmatch1058264 -Node: Extension Sample Fork1059751 -Node: Extension Sample Inplace1060969 -Node: Extension Sample Ord1064179 -Node: Extension Sample Readdir1065015 -Ref: table-readdir-file-types1065904 -Node: Extension Sample Revout1066709 -Node: Extension Sample Rev2way1067298 -Node: Extension Sample Read write array1068038 -Node: Extension Sample Readfile1069980 -Node: Extension Sample Time1071075 -Node: Extension Sample API Tests1072423 -Node: gawkextlib1072915 -Node: Extension summary1075362 -Node: Extension Exercises1079064 -Node: Language History1080562 -Node: V7/SVR3.11082218 -Node: SVR41084370 -Node: POSIX1085804 -Node: BTL1087183 -Node: POSIX/GNU1087912 -Node: Feature History1093774 -Node: Common Extensions1108144 -Node: Ranges and Locales1109427 -Ref: Ranges and Locales-Footnote-11114043 -Ref: Ranges and Locales-Footnote-21114070 -Ref: Ranges and Locales-Footnote-31114305 -Node: Contributors1114526 -Node: History summary1120086 -Node: Installation1121466 -Node: Gawk Distribution1122410 -Node: Getting1122894 -Node: Extracting1123855 -Node: Distribution contents1125493 -Node: Unix Installation1131587 -Node: Quick Installation1132269 -Node: Shell Startup Files1134683 -Node: Additional Configuration Options1135761 -Node: Configuration Philosophy1137566 -Node: Non-Unix Installation1139935 -Node: PC Installation1140393 -Node: PC Binary Installation1141713 -Node: PC Compiling1143565 -Ref: PC Compiling-Footnote-11146359 -Node: PC Testing1146468 -Node: PC Using1147648 -Ref: PC Using-Footnote-11151801 -Node: Cygwin1151874 -Node: MSYS1152644 -Node: VMS Installation1153145 -Node: VMS Compilation1153936 -Ref: VMS Compilation-Footnote-11155165 -Node: VMS Dynamic Extensions1155223 -Node: VMS Installation Details1156908 -Node: VMS Running1159161 -Node: VMS GNV1163440 -Node: VMS Old Gawk1164175 -Node: Bugs1164646 -Node: Other Versions1168961 -Node: Installation summary1175545 -Node: Notes1176596 -Node: Compatibility Mode1177461 -Node: Additions1178243 -Node: Accessing The Source1179168 -Node: Adding Code1180603 -Node: New Ports1186822 -Node: Derived Files1191310 -Ref: Derived Files-Footnote-11196795 -Ref: Derived Files-Footnote-21196830 -Ref: Derived Files-Footnote-31197428 -Node: Future Extensions1197542 -Node: Implementation Limitations1198200 -Node: Extension Design1199383 -Node: Old Extension Problems1200537 -Ref: Old Extension Problems-Footnote-11202055 -Node: Extension New Mechanism Goals1202112 -Ref: Extension New Mechanism Goals-Footnote-11205476 -Node: Extension Other Design Decisions1205665 -Node: Extension Future Growth1207778 -Node: Old Extension Mechanism1208614 -Node: Notes summary1210377 -Node: Basic Concepts1211559 -Node: Basic High Level1212240 -Ref: figure-general-flow1212522 -Ref: figure-process-flow1213207 -Ref: Basic High Level-Footnote-11216508 -Node: Basic Data Typing1216693 -Node: Glossary1220021 -Node: Copying1251968 -Node: GNU Free Documentation License1289507 -Node: Index1314625 +Node: Regexp Summary192174 +Node: Reading Files193780 +Node: Records195943 +Node: awk split records196676 +Node: gawk split records201607 +Ref: gawk split records-Footnote-1206147 +Node: Fields206184 +Node: Nonconstant Fields208925 +Ref: Nonconstant Fields-Footnote-1211161 +Node: Changing Fields211365 +Node: Field Separators217293 +Node: Default Field Splitting219991 +Node: Regexp Field Splitting221109 +Node: Single Character Fields224462 +Node: Command Line Field Separator225522 +Node: Full Line Fields228740 +Ref: Full Line Fields-Footnote-1230262 +Ref: Full Line Fields-Footnote-2230308 +Node: Field Splitting Summary230409 +Node: Constant Size232483 +Node: Splitting By Content237061 +Ref: Splitting By Content-Footnote-1241032 +Node: Multiple Line241195 +Ref: Multiple Line-Footnote-1247077 +Node: Getline247256 +Node: Plain Getline249723 +Node: Getline/Variable252362 +Node: Getline/File253511 +Node: Getline/Variable/File254897 +Ref: Getline/Variable/File-Footnote-1256500 +Node: Getline/Pipe256588 +Node: Getline/Variable/Pipe259293 +Node: Getline/Coprocess260426 +Node: Getline/Variable/Coprocess261691 +Node: Getline Notes262431 +Node: Getline Summary265226 +Ref: table-getline-variants265648 +Node: Read Timeout266396 +Ref: Read Timeout-Footnote-1270302 +Node: Retrying Input270360 +Node: Command-line directories271559 +Node: Input Summary272465 +Node: Input Exercises275637 +Node: Printing276365 +Node: Print278199 +Node: Print Examples279656 +Node: Output Separators282436 +Node: OFMT284453 +Node: Printf285809 +Node: Basic Printf286594 +Node: Control Letters288168 +Node: Format Modifiers292156 +Node: Printf Examples298171 +Node: Redirection300657 +Node: Special FD307498 +Ref: Special FD-Footnote-1310666 +Node: Special Files310740 +Node: Other Inherited Files311357 +Node: Special Network312358 +Node: Special Caveats313218 +Node: Close Files And Pipes314167 +Ref: table-close-pipe-return-values321074 +Ref: Close Files And Pipes-Footnote-1321857 +Ref: Close Files And Pipes-Footnote-2322005 +Node: Nonfatal322157 +Node: Output Summary324482 +Node: Output Exercises325704 +Node: Expressions326383 +Node: Values327571 +Node: Constants328249 +Node: Scalar Constants328940 +Ref: Scalar Constants-Footnote-1329804 +Node: Nondecimal-numbers330054 +Node: Regexp Constants333067 +Node: Using Constant Regexps333593 +Node: Variables336756 +Node: Using Variables337413 +Node: Assignment Options339323 +Node: Conversion341196 +Node: Strings And Numbers341720 +Ref: Strings And Numbers-Footnote-1344783 +Node: Locale influences conversions344892 +Ref: table-locale-affects347650 +Node: All Operators348268 +Node: Arithmetic Ops348897 +Node: Concatenation351403 +Ref: Concatenation-Footnote-1354250 +Node: Assignment Ops354357 +Ref: table-assign-ops359348 +Node: Increment Ops360661 +Node: Truth Values and Conditions364121 +Node: Truth Values365195 +Node: Typing and Comparison366243 +Node: Variable Typing367063 +Node: Comparison Operators370687 +Ref: table-relational-ops371106 +Node: POSIX String Comparison374601 +Ref: POSIX String Comparison-Footnote-1376296 +Ref: POSIX String Comparison-Footnote-2376435 +Node: Boolean Ops376519 +Ref: Boolean Ops-Footnote-1381001 +Node: Conditional Exp381093 +Node: Function Calls382829 +Node: Precedence386706 +Node: Locales390365 +Node: Expressions Summary391997 +Node: Patterns and Actions394570 +Node: Pattern Overview395690 +Node: Regexp Patterns397367 +Node: Expression Patterns397909 +Node: Ranges401690 +Node: BEGIN/END404798 +Node: Using BEGIN/END405559 +Ref: Using BEGIN/END-Footnote-1408295 +Node: I/O And BEGIN/END408401 +Node: BEGINFILE/ENDFILE410715 +Node: Empty413622 +Node: Using Shell Variables413939 +Node: Action Overview416213 +Node: Statements418538 +Node: If Statement420386 +Node: While Statement421881 +Node: Do Statement423909 +Node: For Statement425057 +Node: Switch Statement428215 +Node: Break Statement430601 +Node: Continue Statement432693 +Node: Next Statement434520 +Node: Nextfile Statement436903 +Node: Exit Statement439555 +Node: Built-in Variables441958 +Node: User-modified443091 +Node: Auto-set450677 +Ref: Auto-set-Footnote-1465330 +Ref: Auto-set-Footnote-2465536 +Node: ARGC and ARGV465592 +Node: Pattern Action Summary469805 +Node: Arrays472235 +Node: Array Basics473564 +Node: Array Intro474408 +Ref: figure-array-elements476383 +Ref: Array Intro-Footnote-1479087 +Node: Reference to Elements479215 +Node: Assigning Elements481679 +Node: Array Example482170 +Node: Scanning an Array483929 +Node: Controlling Scanning486951 +Ref: Controlling Scanning-Footnote-1492350 +Node: Numeric Array Subscripts492666 +Node: Uninitialized Subscripts494850 +Node: Delete496469 +Ref: Delete-Footnote-1499221 +Node: Multidimensional499278 +Node: Multiscanning502373 +Node: Arrays of Arrays503964 +Node: Arrays Summary508731 +Node: Functions510824 +Node: Built-in511862 +Node: Calling Built-in512943 +Node: Numeric Functions514939 +Ref: Numeric Functions-Footnote-1519772 +Ref: Numeric Functions-Footnote-2520129 +Ref: Numeric Functions-Footnote-3520177 +Node: String Functions520449 +Ref: String Functions-Footnote-1543953 +Ref: String Functions-Footnote-2544081 +Ref: String Functions-Footnote-3544329 +Node: Gory Details544416 +Ref: table-sub-escapes546207 +Ref: table-sub-proposed547726 +Ref: table-posix-sub549089 +Ref: table-gensub-escapes550630 +Ref: Gory Details-Footnote-1551453 +Node: I/O Functions551607 +Ref: table-system-return-values558189 +Ref: I/O Functions-Footnote-1560169 +Ref: I/O Functions-Footnote-2560317 +Node: Time Functions560437 +Ref: Time Functions-Footnote-1570942 +Ref: Time Functions-Footnote-2571010 +Ref: Time Functions-Footnote-3571168 +Ref: Time Functions-Footnote-4571279 +Ref: Time Functions-Footnote-5571391 +Ref: Time Functions-Footnote-6571618 +Node: Bitwise Functions571884 +Ref: table-bitwise-ops572478 +Ref: Bitwise Functions-Footnote-1576816 +Node: Type Functions576989 +Node: I18N Functions579650 +Node: User-defined581301 +Node: Definition Syntax582106 +Ref: Definition Syntax-Footnote-1587793 +Node: Function Example587864 +Ref: Function Example-Footnote-1590786 +Node: Function Caveats590808 +Node: Calling A Function591326 +Node: Variable Scope592284 +Node: Pass By Value/Reference595278 +Node: Return Statement598777 +Node: Dynamic Typing601756 +Node: Indirect Calls602686 +Ref: Indirect Calls-Footnote-1612937 +Node: Functions Summary613065 +Node: Library Functions615770 +Ref: Library Functions-Footnote-1619377 +Ref: Library Functions-Footnote-2619520 +Node: Library Names619691 +Ref: Library Names-Footnote-1623151 +Ref: Library Names-Footnote-2623374 +Node: General Functions623460 +Node: Strtonum Function624563 +Node: Assert Function627585 +Node: Round Function630911 +Node: Cliff Random Function632452 +Node: Ordinal Functions633468 +Ref: Ordinal Functions-Footnote-1636531 +Ref: Ordinal Functions-Footnote-2636783 +Node: Join Function636993 +Ref: Join Function-Footnote-1638763 +Node: Getlocaltime Function638963 +Node: Readfile Function642705 +Node: Shell Quoting644677 +Node: Data File Management646078 +Node: Filetrans Function646710 +Node: Rewind Function650806 +Node: File Checking652712 +Ref: File Checking-Footnote-1654046 +Node: Empty Files654247 +Node: Ignoring Assigns656226 +Node: Getopt Function657776 +Ref: Getopt Function-Footnote-1669245 +Node: Passwd Functions669445 +Ref: Passwd Functions-Footnote-1678284 +Node: Group Functions678372 +Ref: Group Functions-Footnote-1686269 +Node: Walking Arrays686476 +Node: Library Functions Summary689484 +Node: Library Exercises690890 +Node: Sample Programs691355 +Node: Running Examples692125 +Node: Clones692853 +Node: Cut Program694077 +Node: Egrep Program704006 +Ref: Egrep Program-Footnote-1711518 +Node: Id Program711628 +Node: Split Program715308 +Ref: Split Program-Footnote-1718767 +Node: Tee Program718896 +Node: Uniq Program721686 +Node: Wc Program729112 +Ref: Wc Program-Footnote-1733367 +Node: Miscellaneous Programs733461 +Node: Dupword Program734674 +Node: Alarm Program736704 +Node: Translate Program741559 +Ref: Translate Program-Footnote-1746124 +Node: Labels Program746394 +Ref: Labels Program-Footnote-1749745 +Node: Word Sorting749829 +Node: History Sorting753901 +Node: Extract Program755736 +Node: Simple Sed763265 +Node: Igawk Program766339 +Ref: Igawk Program-Footnote-1780670 +Ref: Igawk Program-Footnote-2780872 +Ref: Igawk Program-Footnote-3780994 +Node: Anagram Program781109 +Node: Signature Program784171 +Node: Programs Summary785418 +Node: Programs Exercises786632 +Ref: Programs Exercises-Footnote-1790761 +Node: Advanced Features790852 +Node: Nondecimal Data792842 +Node: Array Sorting794433 +Node: Controlling Array Traversal795133 +Ref: Controlling Array Traversal-Footnote-1803500 +Node: Array Sorting Functions803618 +Ref: Array Sorting Functions-Footnote-1808709 +Node: Two-way I/O808905 +Ref: Two-way I/O-Footnote-1815455 +Ref: Two-way I/O-Footnote-2815642 +Node: TCP/IP Networking815724 +Node: Profiling818842 +Ref: Profiling-Footnote-1827335 +Node: Advanced Features Summary827658 +Node: Internationalization829502 +Node: I18N and L10N830982 +Node: Explaining gettext831669 +Ref: Explaining gettext-Footnote-1837561 +Ref: Explaining gettext-Footnote-2837746 +Node: Programmer i18n837911 +Ref: Programmer i18n-Footnote-1842766 +Node: Translator i18n842815 +Node: String Extraction843609 +Ref: String Extraction-Footnote-1844741 +Node: Printf Ordering844827 +Ref: Printf Ordering-Footnote-1847613 +Node: I18N Portability847677 +Ref: I18N Portability-Footnote-1850133 +Node: I18N Example850196 +Ref: I18N Example-Footnote-1853002 +Node: Gawk I18N853075 +Node: I18N Summary853720 +Node: Debugger855061 +Node: Debugging856083 +Node: Debugging Concepts856524 +Node: Debugging Terms858333 +Node: Awk Debugging860908 +Node: Sample Debugging Session861814 +Node: Debugger Invocation862348 +Node: Finding The Bug863734 +Node: List of Debugger Commands870212 +Node: Breakpoint Control871545 +Node: Debugger Execution Control875239 +Node: Viewing And Changing Data878601 +Node: Execution Stack881975 +Node: Debugger Info883612 +Node: Miscellaneous Debugger Commands887683 +Node: Readline Support892771 +Node: Limitations893667 +Ref: Limitations-Footnote-1897898 +Node: Debugging Summary897949 +Node: Arbitrary Precision Arithmetic899228 +Node: Computer Arithmetic900644 +Ref: table-numeric-ranges904235 +Ref: Computer Arithmetic-Footnote-1904957 +Node: Math Definitions905014 +Ref: table-ieee-formats908328 +Ref: Math Definitions-Footnote-1908931 +Node: MPFR features909036 +Node: FP Math Caution910753 +Ref: FP Math Caution-Footnote-1911825 +Node: Inexactness of computations912194 +Node: Inexact representation913154 +Node: Comparing FP Values914514 +Node: Errors accumulate915596 +Node: Getting Accuracy917029 +Node: Try To Round919739 +Node: Setting precision920638 +Ref: table-predefined-precision-strings921335 +Node: Setting the rounding mode923165 +Ref: table-gawk-rounding-modes923539 +Ref: Setting the rounding mode-Footnote-1926947 +Node: Arbitrary Precision Integers927126 +Ref: Arbitrary Precision Integers-Footnote-1932043 +Node: POSIX Floating Point Problems932192 +Ref: POSIX Floating Point Problems-Footnote-1936074 +Node: Floating point summary936112 +Node: Dynamic Extensions938302 +Node: Extension Intro939855 +Node: Plugin License941121 +Node: Extension Mechanism Outline941918 +Ref: figure-load-extension942357 +Ref: figure-register-new-function943922 +Ref: figure-call-new-function945014 +Node: Extension API Description947076 +Node: Extension API Functions Introduction948608 +Node: General Data Types953467 +Ref: General Data Types-Footnote-1959422 +Node: Memory Allocation Functions959721 +Ref: Memory Allocation Functions-Footnote-1962566 +Node: Constructor Functions962665 +Node: Registration Functions964410 +Node: Extension Functions965095 +Node: Exit Callback Functions967718 +Node: Extension Version String968968 +Node: Input Parsers969631 +Node: Output Wrappers979513 +Node: Two-way processors984025 +Node: Printing Messages986290 +Ref: Printing Messages-Footnote-1987461 +Node: Updating ERRNO987614 +Node: Requesting Values988353 +Ref: table-value-types-returned989090 +Node: Accessing Parameters989973 +Node: Symbol Table Access991208 +Node: Symbol table by name991720 +Node: Symbol table by cookie993741 +Ref: Symbol table by cookie-Footnote-1997893 +Node: Cached values997957 +Ref: Cached values-Footnote-11001464 +Node: Array Manipulation1001555 +Ref: Array Manipulation-Footnote-11002646 +Node: Array Data Types1002683 +Ref: Array Data Types-Footnote-11005341 +Node: Array Functions1005433 +Node: Flattening Arrays1009291 +Node: Creating Arrays1016199 +Node: Redirection API1020968 +Node: Extension API Variables1023799 +Node: Extension Versioning1024432 +Ref: gawk-api-version1024869 +Node: Extension API Informational Variables1026625 +Node: Extension API Boilerplate1027689 +Node: Finding Extensions1031503 +Node: Extension Example1032062 +Node: Internal File Description1032860 +Node: Internal File Ops1036940 +Ref: Internal File Ops-Footnote-11048702 +Node: Using Internal File Ops1048842 +Ref: Using Internal File Ops-Footnote-11051225 +Node: Extension Samples1051499 +Node: Extension Sample File Functions1053028 +Node: Extension Sample Fnmatch1060677 +Node: Extension Sample Fork1062164 +Node: Extension Sample Inplace1063382 +Node: Extension Sample Ord1066592 +Node: Extension Sample Readdir1067428 +Ref: table-readdir-file-types1068317 +Node: Extension Sample Revout1069122 +Node: Extension Sample Rev2way1069711 +Node: Extension Sample Read write array1070451 +Node: Extension Sample Readfile1072393 +Node: Extension Sample Time1073488 +Node: Extension Sample API Tests1074836 +Node: gawkextlib1075328 +Node: Extension summary1077775 +Node: Extension Exercises1081477 +Node: Language History1082975 +Node: V7/SVR3.11084631 +Node: SVR41086783 +Node: POSIX1088217 +Node: BTL1089596 +Node: POSIX/GNU1090325 +Node: Feature History1096187 +Node: Common Extensions1110557 +Node: Ranges and Locales1111840 +Ref: Ranges and Locales-Footnote-11116456 +Ref: Ranges and Locales-Footnote-21116483 +Ref: Ranges and Locales-Footnote-31116718 +Node: Contributors1116939 +Node: History summary1122499 +Node: Installation1123879 +Node: Gawk Distribution1124823 +Node: Getting1125307 +Node: Extracting1126268 +Node: Distribution contents1127906 +Node: Unix Installation1134000 +Node: Quick Installation1134682 +Node: Shell Startup Files1137096 +Node: Additional Configuration Options1138174 +Node: Configuration Philosophy1139979 +Node: Non-Unix Installation1142348 +Node: PC Installation1142806 +Node: PC Binary Installation1144126 +Node: PC Compiling1145978 +Ref: PC Compiling-Footnote-11148772 +Node: PC Testing1148881 +Node: PC Using1150061 +Ref: PC Using-Footnote-11154214 +Node: Cygwin1154287 +Node: MSYS1155057 +Node: VMS Installation1155558 +Node: VMS Compilation1156349 +Ref: VMS Compilation-Footnote-11157578 +Node: VMS Dynamic Extensions1157636 +Node: VMS Installation Details1159321 +Node: VMS Running1161574 +Node: VMS GNV1165853 +Node: VMS Old Gawk1166588 +Node: Bugs1167059 +Node: Other Versions1171374 +Node: Installation summary1177958 +Node: Notes1179009 +Node: Compatibility Mode1179874 +Node: Additions1180656 +Node: Accessing The Source1181581 +Node: Adding Code1183016 +Node: New Ports1189235 +Node: Derived Files1193723 +Ref: Derived Files-Footnote-11199208 +Ref: Derived Files-Footnote-21199243 +Ref: Derived Files-Footnote-31199841 +Node: Future Extensions1199955 +Node: Implementation Limitations1200613 +Node: Extension Design1201796 +Node: Old Extension Problems1202950 +Ref: Old Extension Problems-Footnote-11204468 +Node: Extension New Mechanism Goals1204525 +Ref: Extension New Mechanism Goals-Footnote-11207889 +Node: Extension Other Design Decisions1208078 +Node: Extension Future Growth1210191 +Node: Old Extension Mechanism1211027 +Node: Notes summary1212790 +Node: Basic Concepts1213972 +Node: Basic High Level1214653 +Ref: figure-general-flow1214935 +Ref: figure-process-flow1215620 +Ref: Basic High Level-Footnote-11218921 +Node: Basic Data Typing1219106 +Node: Glossary1222434 +Node: Copying1254381 +Node: GNU Free Documentation License1291920 +Node: Index1317038 End Tag Table |