updated code and docs
This commit is contained in:
parent
cc1438a2cf
commit
ca2bb6155a
@ -92,15 +92,15 @@ is not allowed in the line selector.
|
||||
- <b>c \\ \n text</b>
|
||||
If a single line is selected for the command (i.e. no line selector, a single
|
||||
address line selector, or a start~step line selector is specified), it changes
|
||||
pattern space to @b text and skips all subsequent commands for the line.
|
||||
If an address range is specified, it deletes pattern space and skips
|
||||
subsequent commands for all input lines but the last, and changes pattern
|
||||
space to @b text and skips subsequent commands for the last line.
|
||||
pattern space to @b text and branches to the end of commands for the line.
|
||||
If an address range is specified, it deletes pattern space and branches
|
||||
to the end of commands for all input lines but the last, and changes pattern
|
||||
space to @b text and branches to the end of commands.
|
||||
- <b>d</b>
|
||||
Deletes pattern space and skips subsequent commands for each selected line.
|
||||
Deletes pattern space and branches to the end of commands.
|
||||
- <b>D</b>
|
||||
Deletes the first line of pattern space. If the pattern space is emptied,
|
||||
subsequent commands are skipped. Otherwise, the commands from the first are
|
||||
it branches to the end of script. Otherwise, the commands from the first are
|
||||
reapplied to the current pattern space.
|
||||
- <b>=</b>
|
||||
Prints the current line number. If #QSE_SED_CLASSIC is speccified, an address
|
||||
@ -127,4 +127,30 @@ pattern space.
|
||||
- <b>N</b>
|
||||
Prints pattern space and read the next line from the input stream to append it
|
||||
to pattern space with a newline inserted.
|
||||
- <b>b/b>
|
||||
Branches to the end of commands.
|
||||
- <b>b label</b>
|
||||
Branches to @b label
|
||||
- <b>t</b>
|
||||
Branches to the end of commands if substitution(s//) has been made
|
||||
successfully since the last reading of an input line or the last @b t command.
|
||||
- <b>t label</b>
|
||||
Branches to @b label if substitution(s//) has been made successfully
|
||||
since the last reading of an input line or the last @b t command.
|
||||
- <b>r file</b>
|
||||
Reads text from @ file and prints it after printing pattern space but before
|
||||
printing append buffer. Failure to read @ file does not cause an error.
|
||||
- <b>R file</b>
|
||||
Reads a line of text from @ file and prints it after printing pattern space
|
||||
but before printing append buffer. Failure to read @ file does not cause an
|
||||
error.
|
||||
- <b>w file</b>
|
||||
|
||||
- <b>W file</b>
|
||||
|
||||
- <b>s/rex/repl/opt</b>
|
||||
|
||||
- <b>y/src/dst/</b>
|
||||
Replaces all occurrences of characters in @b src with characters in @b dst.
|
||||
@b src and @b dst must contain equal number of characters.
|
||||
*/
|
||||
|
@ -1,8 +1,5 @@
|
||||
/* include/qse/config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define if building universal (internal helper macro) */
|
||||
#undef AC_APPLE_UNIVERSAL_BUILD
|
||||
|
||||
/* Define to 1 if you have the `atan' function. */
|
||||
#undef HAVE_ATAN
|
||||
|
||||
@ -333,15 +330,3 @@
|
||||
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD
|
||||
# if defined __BIG_ENDIAN__
|
||||
# define WORDS_BIGENDIAN 1
|
||||
# endif
|
||||
#else
|
||||
# ifndef WORDS_BIGENDIAN
|
||||
# undef WORDS_BIGENDIAN
|
||||
# endif
|
||||
#endif
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: Sed.hpp 127 2009-05-07 13:15:04Z baconevi $
|
||||
* $Id: Sed.hpp 191 2009-06-07 13:09:14Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: Sed.hpp 127 2009-05-07 13:15:04Z baconevi $
|
||||
* $Id: StdSed.hpp 191 2009-06-07 13:09:14Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id$
|
||||
* $Id: sed.h 191 2009-06-07 13:09:14Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: Sed.hpp 127 2009-05-07 13:15:04Z baconevi $
|
||||
* $Id: Sed.cpp 191 2009-06-07 13:09:14Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: Sed.hpp 127 2009-05-07 13:15:04Z baconevi $
|
||||
* $Id: StdSed.cpp 191 2009-06-07 13:09:14Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: err.c 113 2009-03-25 14:53:10Z baconevi $
|
||||
* $Id: err.c 191 2009-06-07 13:09:14Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id$
|
||||
* $Id: sed.c 191 2009-06-07 13:09:14Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id$
|
||||
* $Id: sed.h 191 2009-06-07 13:09:14Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user