1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

530 Commits

Author SHA1 Message Date
17a319d120 args to jq_compile_args were not getting freed when there were errors in the compile 2013-12-08 15:28:29 +00:00
3a1dab5396 Fix double-free typo in print_error() 2013-12-06 23:25:06 -06:00
dac081e183 Fix manual.yml 2013-12-06 11:58:55 -06:00
489fcdc089 Merge pull request #224 from nicowilliams/features
Features: more arity, string ops
2013-12-04 17:36:08 -08:00
3ba7c97b2a Add self to AUTHORS 2013-12-04 18:21:42 -06:00
54635000c5 Conditionally #define _GNU_SOURCE in compile.c 2013-12-04 18:21:42 -06:00
426edff09c Add tests for string index by string and builtins 2013-12-04 18:21:42 -06:00
b37ce20c2a Add index and rindex builtins 2013-12-04 18:21:42 -06:00
cac14a531d Add index strings by string; return string indexes
% jq '.[","]'
    "a,bc,def,ghij,klmno"
    [1,4,8,13]
    %
2013-12-04 18:21:42 -06:00
ae7a042876 Make length return abs value of numeric inputs 2013-12-04 18:21:42 -06:00
eb165459aa Add callback interface for errors
Printing to stderr is not the right answer for a library.
2013-12-04 18:21:41 -06:00
04bc2ef7cf Add jv_string_vfmt() 2013-12-04 18:21:41 -06:00
09104ce531 Document ltrimstr and rtrimstr 2013-12-04 18:21:41 -06:00
9fa2173825 Test ltrimstr and rtrimstr functions 2013-12-04 18:21:41 -06:00
346da34432 Add ltrimstr and rtrimstr functions 2013-12-04 18:21:41 -06:00
fa316ac430 Document -u / --unslurp option 2013-12-04 18:21:41 -06:00
77936a594d Add -I / --online-input for huge top-level arrays 2013-12-04 18:21:41 -06:00
4e07eac356 Document -e / --exit-status argument 2013-12-04 18:21:40 -06:00
d018e43ddc Add -e | --exit-status CLI option 2013-12-04 18:21:40 -06:00
8cee66e609 Document tojson and fromjson builtins 2013-12-04 18:21:40 -06:00
3c4248192d Test tojson and fromjson 2013-12-04 18:21:40 -06:00
255f8ef5be Add tojson and fromjson builtins 2013-12-04 18:21:40 -06:00
20b32db5af Document split function 2013-12-04 18:21:40 -06:00
b634722c8a Document string multiplication and division 2013-12-04 18:21:40 -06:00
c9e8581f45 Document string functions and slicing 2013-12-04 18:21:39 -06:00
da129f6664 Test string slicing 2013-12-04 18:21:39 -06:00
884e6c7d8b Add string slicing 2013-12-04 18:21:39 -06:00
5aadaa79eb Add tests for string division/splitting 2013-12-04 18:21:39 -06:00
cf562961b7 Add string division by string (split on separator) 2013-12-04 18:21:39 -06:00
63bed9bdf1 Test starts/endswith and string multiplication 2013-12-04 18:21:39 -06:00
5989dbdfcf Add string multiplication by number 2013-12-04 18:21:39 -06:00
db19a11399 Add startswith/endswith 2013-12-04 18:21:38 -06:00
6c734cb609 Add explode/implode jq functions to match jv API 2013-12-04 18:21:38 -06:00
ef41d1cb57 Use uint32_t for codepoint in jv_string_append_codepoint() 2013-12-04 18:21:38 -06:00
08b4a34a8e Add jv string utility functions
jv_string_empty()
        -> return an empty string with given allocated length (for fast
           appends)
    jv_string_append_codepoint
        -> append a single codepoint (int) to the given string
    jv_string_explode
        -> return an array of codepoints making up a string
    jv_string_implode
        -> return the UTF-8 encoding of an array of codepoint numbers
2013-12-04 18:21:38 -06:00
1fc5656762 Support more arguments for defs 2013-12-04 18:21:38 -06:00
91cfc34ae4 Preserve insertion order in objects. Closes #169. 2013-12-04 22:30:39 +00:00
a0b942a7f5 Add a few more test cases (from the man page)
Signed-off-by: Nicolas Williams <nico@cryptonector.com>
2013-11-30 00:55:26 -06:00
6a401c8262 Add a --unbuffered option. Closes #206 2013-11-08 12:21:45 +00:00
d235f32bc9 Merge pull request #210 from Habbie/patch-1
count should be length
2013-11-08 03:43:57 -08:00
bdbfa7e32c count should be length
Example refers to a count function, which does not exist. Replacing it with length works.
2013-11-07 16:39:44 +01:00
78976b3504 Merge pull request #193 from ryo1kato/fix-docs
Docs: add description of --from-file option
2013-11-07 04:41:01 -08:00
8d4748c8df Fix a crash on group_by of empty list. Fixes #208. 2013-11-07 12:18:48 +00:00
da723d3e11 Docs: add description of --from-file option 2013-10-16 21:42:29 +09:00
0feeb7d0d4 Merge pull request #188 from Juanxo/patch-1
Fix typo on error message
2013-10-07 06:59:50 -07:00
9e53f36a74 Fix typo on error message 2013-10-06 17:52:04 +02:00
7e7c08da47 Merge pull request #185 from qoelet/master
Add missing -i flag in build instructions
2013-09-20 06:05:42 -07:00
2f6b89ef70 Add missing -i flag in build instructions 2013-09-20 10:34:57 +08:00
4e3024cb61 Merge pull request #182 from mdaines/sqrt-builtin
Add builtin for calculating square root
2013-09-14 16:34:52 -07:00
c427bf6a94 Add test showing calculation of standard deviation 2013-09-14 17:48:19 -04:00