Commit Graph

130 Commits

Author SHA1 Message Date
00e15a42e9 fixed a bug in handling r and a command 2011-09-11 10:14:38 +00:00
3db2c566a2 added QSE_TRE_NONSTDEXT
fixed a bug of not printing pattern space properly after 'q'
2011-09-09 01:49:53 +00:00
92b4c29551 * fixed a bug of not setting the IGNORECASE option properly to TRE.
* added code to treat a regular expressio delimiter as a normal character when present within [] of a regular expression.
* changed code to allow 0 as a starting address of a start~step address form.
* added code to accept 'I' as a option to the 's' command.
2011-09-08 09:36:08 +00:00
0f85644269 added code to handle an empty regular expression in sed 2011-09-07 08:18:36 +00:00
2f15ca2335 enhanced sed escape handling
fixed an issue of adding an extra newline after matching $ in do_subst() of sed.
changed tre slightly for QSE's own needs
2011-09-05 10:21:54 +00:00
3fe32033cb * fixed a rounding bug of reallocation size in _realloc_merge of qse_xma_t.
* replaced rex with tre in qse_sed_t
* added submatch reference for the 's' command into qse_sed_t
* changed some options and functions for tre integration in qse_sed_t
2011-09-03 09:27:44 +00:00
1efa41052e fixed a minor bug in calling tre_add_tags()
added qse_tre_open()/qse_tre_close()/qse_tre_geterrnum()/qse_tre_geterrmsg()
added a parameter to return the number of submatches into qse_tre_compx()/qse_tre_comp()
2011-09-02 08:45:06 +00:00
6aba3f8f89 integrated Ville Laurikari's TRE 2011-09-01 09:43:46 +00:00
2c4ed8caf9 * added QSE_MBLEN_MAX
* added qse_getcclsid() and related functions
* added qse_isblank() and realted code
2011-08-22 23:26:26 +00:00
c380388718 added qse_parsehttprange 2011-07-26 09:42:35 +00:00
c7a49615a2 improved tokenization by rex 2011-05-19 08:36:40 +00:00
65588fad45 updated copyright notice 2011-04-23 08:28:43 +00:00
758037fac0 added more code for scm 2011-02-22 03:11:21 +00:00
f24fe05409 updated build files with a newer autoconf 2011-02-11 07:48:51 +00:00
db7d928a68 deleted unnecessary items from configure.ac 2011-02-01 22:48:53 +00:00
ec26d103c3 changed build order 2011-01-23 05:26:48 +00:00
5c1599722b fixed distcheck issues 2011-01-23 04:32:11 +00:00
da945c3a08 fixed minor build issues 2011-01-23 03:52:20 +00:00
0e561c494c changed autoconf and build files 2011-01-22 02:04:22 +00:00
d58631e70b enhanced qse_htb_t and qse_rbt_t
- defined builtin mancbs'
- changed qse_rbt_t to point to mancbs
- touched up a few other functions
2010-10-30 07:54:36 +00:00
299852beaa enhanced resizing of qse_lda_t and qse_str_t 2010-10-22 07:29:12 +00:00
810134f0ea enhanced qse_fma_h to have more consistency with qse_xma_h 2010-08-27 00:26:28 +00:00
c0122c72b8 implemented a non-recursive s-expression reader 2010-08-18 07:15:14 +00:00
f467ec9930 touched the memory allocator 2010-07-25 06:43:26 +00:00
a8e9033b86 fixed a bug in rbt.c 2010-07-15 06:54:48 +00:00
99c72b1755 * renamed map to htb
* added qse_awk_findgbl()
* added Awk::findGlobal()
* began working on red-black tree
2010-07-09 00:58:44 +00:00
b0a03e0b4d enhanced regular expression handler 2010-05-10 07:44:39 +00:00
d418e651e5 - added easy C API functions for sed and cut
- added a sample C program for sed
- added C++ API for cut.
2009-12-22 06:29:52 +00:00
92cbbbcec1 - renamed Sed::IOStream to Sed::Stream
- renamed StdSed::StdStream to StdSed::FileStream
- added StdSed::StringStream
2009-12-19 21:06:28 +00:00
de7082d0d0 - Changed the way Mmgr is used. A subclass inheriting Mmged is instantiated with a pointer to Mmgr which used to be the parent class.
- Separated the I/O stream handler from the Sed class and abstracted it into Sed::IOStream.
- Implemented StdSed::StdStream.
2009-12-19 06:34:42 +00:00
0d83bdba2c revised project information and added more test scripts for awk 2009-12-14 01:44:50 +00:00
faea2475ac fixed a parser bug in awk.
- handling of idiv operators
- tokenization of /=/ as a regular expression
- calling QSE_AWK_FREEREX to free compiled regular expressions.
switched to a new regular expression handler.
2009-12-11 07:03:54 +00:00
1d5be1f982 still coding rex1.c 2009-11-20 23:12:27 +00:00
6de11d0391 added partial code for cut 2009-10-05 08:08:27 +00:00
773f5cec57 touched up code a bit 2009-09-16 04:01:02 +00:00
07d4a531f8 fixed a memory leak bug in parse_expr_basic() in parse.c
touched up qse_sed_comp() a little.
ehnanced the regression test script
2009-09-10 21:05:13 +00:00
faf8d996db touched up sed 2009-09-08 07:34:49 +00:00
f14f01864d fixed a bug in handling QSE_SED_QUIET for the 'n' command 2009-09-05 07:08:19 +00:00
10c75d357d fixed a bug in emitting a string 2009-09-03 06:55:55 +00:00
15227808a7 added QSE_SED_SAMELINE to sed 2009-09-01 07:24:06 +00:00
cefda5ffc6 improved sed error handling 2009-08-26 21:03:51 +00:00
1f29eb2521 touched up sed a little 2009-08-26 07:07:54 +00:00
933a2ff773 fixed make distcheck problem 2009-08-22 20:35:46 +00:00
0f9d553ff8 touched up code 2009-08-18 06:10:30 +00:00
f0f2db5e8a cleaned up code 2009-07-16 04:43:31 +00:00
97a7febc78 fixed a bug in closing a qse_awk_rtx_t object
- refdown_globals() should have been called after qse_awk_rtx_clrrec()
  as it still access NF.
fixed typo in awk error messages
fixed a memory allocation bug in matching a group (match_group) 
uncommented binary number parsing code in the awk parser.
2009-06-23 07:01:28 +00:00
944a492c88 fixed bugs in rex and awk
- fixed bugs of not parsing some forms of ranges such as {,m} {n,} properly
- fixed bugs in substitution functions that did not handle 0-length substring match properly.
2009-06-18 06:43:50 +00:00
fd1c529c46 fixed a few bugs in awk
- improved input console file and ARGV handling.
- fixed bugs in the builtin rand() function.
- added a new option to rex.
- fixed a control flow handling bug in for(x in y) of awk.
2009-06-11 07:18:25 +00:00
ca2bb6155a updated code and docs 2009-06-08 07:09:14 +00:00
cc1438a2cf added more documentation with some code fix 2009-06-08 06:11:56 +00:00