Mon, 09 Mar 2020 19:13:52 +0200 |
Matti Hamalainen |
Allow src and dst to "overlap" for th_pstr_cpy().
|
Mon, 09 Mar 2020 15:46:01 +0200 |
Matti Hamalainen |
Fix th_strcasecmp() and th_strncasecmp() for certain .. cases.
|
Fri, 06 Mar 2020 14:26:45 +0200 |
Matti Hamalainen |
Add th_strchr().
|
Wed, 04 Mar 2020 21:31:14 +0200 |
Matti Hamalainen |
Nullify the strelems when freed.
|
Wed, 04 Mar 2020 19:47:11 +0200 |
Matti Hamalainen |
Add new th_strelems_t structure for and join/split functions using them to
|
Wed, 04 Mar 2020 19:45:26 +0200 |
Matti Hamalainen |
Add in th_strlen() which is a custom function if TH_CHAR_TYPE is defined.
|
Tue, 25 Feb 2020 05:16:42 +0200 |
Matti Hamalainen |
Add new functions th_split_string() and th_join_string().
|
Mon, 27 Jan 2020 07:51:07 +0200 |
Matti Hamalainen |
Oops, missed one case of * sizeof(th_char_t).
|
Mon, 27 Jan 2020 07:47:26 +0200 |
Matti Hamalainen |
Add th_char_t type.
|
Mon, 27 Jan 2020 06:02:22 +0200 |
Matti Hamalainen |
Delete th_strip_ctrlchars().
|
Mon, 27 Jan 2020 06:01:57 +0200 |
Matti Hamalainen |
Cleanups.
|
Fri, 17 Jan 2020 19:32:28 +0200 |
Matti Hamalainen |
Doxygen improvements.
|
Fri, 17 Jan 2020 03:18:40 +0200 |
Matti Hamalainen |
Slight improvements to the almost non-existing Doxygen documentation.
|
Tue, 14 Jan 2020 12:53:23 +0200 |
Matti Hamalainen |
Rename th_strmatch.c to th_strglob.c
|
Mon, 13 Jan 2020 11:41:06 +0200 |
Matti Hamalainen |
Rename some internal preprocessor macros.
|
Sun, 12 Jan 2020 14:27:09 +0200 |
Matti Hamalainen |
Move th_print_wrap() and th_print_pad() to th_args from th_string.
|
Wed, 08 Jan 2020 02:25:04 +0200 |
Matti Hamalainen |
Actually, partially revert the previous commit and unbreak the API. Leave
|
Wed, 08 Jan 2020 02:17:37 +0200 |
Matti Hamalainen |
Massage th_vprintf_do() a bit, and factor out the format specifier handling
|
Sun, 05 Jan 2020 20:17:59 +0200 |
Matti Hamalainen |
Return proper THERR_ error codes from th_pstr_*()
|
Fri, 03 Jan 2020 10:53:55 +0200 |
Matti Hamalainen |
Bump copyright years.
|
Tue, 31 Dec 2019 05:51:33 +0200 |
Matti Hamalainen |
Implement optional use of internal printf() implementation for use in th_strdup_vprintf().
|
Sat, 28 Dec 2019 11:09:29 +0200 |
Matti Hamalainen |
Move bulk of the printf() implementation into a separate file th_printf.c from th_string.c
|
Sat, 28 Dec 2019 09:55:37 +0200 |
Matti Hamalainen |
Improve printf debugging in tests.
|
Sat, 28 Dec 2019 09:54:57 +0200 |
Matti Hamalainen |
Move printf altfmt functions to more logical place.
|
Fri, 27 Dec 2019 09:26:53 +0200 |
Matti Hamalainen |
Add (compile-time enabled via TH_PRINTF_DEBUG define) global variable for
|
Thu, 26 Dec 2019 22:26:19 +0200 |
Matti Hamalainen |
Simplify th_strdup().
|
Thu, 26 Dec 2019 08:05:37 +0200 |
Matti Hamalainen |
Fix th_get_hex_triplet() some more ..
|
Thu, 26 Dec 2019 06:33:35 +0200 |
Matti Hamalainen |
Fix a stupid bug in th_get_hex_triplet().
|
Wed, 25 Dec 2019 11:00:51 +0200 |
Matti Hamalainen |
Change int th_get_hex_triplet(const char *str) API to
|
Thu, 19 Sep 2019 06:20:17 +0300 |
Matti Hamalainen |
Oops. Forgot to declare a variable.
|
Thu, 19 Sep 2019 06:18:50 +0300 |
Matti Hamalainen |
Add new string helper functions th_strndup_no0() and th_strndup_no0_trim()
|
Thu, 10 Jan 2019 20:01:38 +0200 |
Matti Hamalainen |
Bump copyright years.
|
Tue, 27 Nov 2018 07:48:58 +0200 |
Matti Hamalainen |
Add th_get_int() helper function.
|
Fri, 16 Feb 2018 22:21:01 +0200 |
Matti Hamalainen |
Fix th_strrcasecmp(), it had a rather stupid bug.
|
Tue, 02 Jan 2018 23:09:29 +0200 |
Matti Hamalainen |
Actually, revert the boolean changes .. meh.
|
Tue, 02 Jan 2018 22:57:02 +0200 |
Matti Hamalainen |
Bump copyright years.
|
Tue, 02 Jan 2018 22:56:03 +0200 |
Matti Hamalainen |
Break backwards compatibility by renaming BOOL, TRUE and FALSE to lowercase.
|
Wed, 25 Oct 2017 22:20:21 +0300 |
Matti Hamalainen |
Expose some of the internal vprintf() implementation helper functions.
|
Wed, 25 Oct 2017 22:13:09 +0300 |
Matti Hamalainen |
Split th_vprintf_put_int() partially into th_vprintf_put_int_format(), to
|
Wed, 25 Oct 2017 22:10:32 +0300 |
Matti Hamalainen |
Rename th_printf_altfmt_*() functions to th_vprintf_altfmt_*().
|
Thu, 19 Oct 2017 17:17:09 +0300 |
Matti Hamalainen |
Rename functions th_pstrcat() and th_pstrcpy() to th_pstr_cat() and th_pstr_cpy()
|
Sun, 01 Jan 2017 01:59:49 +0200 |
Matti Hamalainen |
Bump copyrights.
|
Mon, 07 Nov 2016 02:57:23 +0200 |
Matti Hamalainen |
#ifdef out WIP floating point support from printf() implementation.
|
Wed, 09 Mar 2016 13:03:39 +0200 |
Matti Hamalainen |
Split th_str{case}match() into another file to reduce code duplication.
|
Wed, 09 Mar 2016 12:10:41 +0200 |
Matti Hamalainen |
Add some XXX TODO FIXME in here :P
|
Wed, 09 Mar 2016 12:07:10 +0200 |
Matti Hamalainen |
Improve printf implementation debugging.
|
Wed, 09 Mar 2016 12:06:45 +0200 |
Matti Hamalainen |
Improve altfmt modifier handling for printf implementation. Not
|
Wed, 09 Mar 2016 12:05:16 +0200 |
Matti Hamalainen |
Improve printf implementation somewhat. The logic is not very pretty and not
|
Thu, 03 Mar 2016 14:44:43 +0200 |
Matti Hamalainen |
Update comment to reflect the status of supported printf length modifiers.
|
Thu, 03 Mar 2016 13:49:45 +0200 |
Matti Hamalainen |
If f_width is not specified, initialize it to -1.
|
Thu, 03 Mar 2016 13:45:11 +0200 |
Matti Hamalainen |
10L.
|
Thu, 03 Mar 2016 13:44:25 +0200 |
Matti Hamalainen |
Prepare to handle variable width and precision given as arguments.
|
Thu, 03 Mar 2016 13:17:40 +0200 |
Matti Hamalainen |
Comments.
|
Thu, 03 Mar 2016 13:16:45 +0200 |
Matti Hamalainen |
Remove debug variable.
|
Thu, 03 Mar 2016 13:07:02 +0200 |
Matti Hamalainen |
Cosmetic linebreaks.
|
Thu, 03 Mar 2016 11:51:02 +0200 |
Matti Hamalainen |
Add missing debug variable.
|
Thu, 03 Mar 2016 11:45:48 +0200 |
Matti Hamalainen |
Add debug prints when TH_PRINTF_DEBUG is defined.
|
Mon, 29 Feb 2016 16:50:54 +0200 |
Matti Hamalainen |
Rename s/th_printf_vbuf_int/th_vprintf_buf_int/g.
|
Mon, 29 Feb 2016 16:49:34 +0200 |
Matti Hamalainen |
Pass also numeric buffer and return value from th_printf_vbuf_int*() to altfmt helper functions.
|
Mon, 29 Feb 2016 16:35:05 +0200 |
Matti Hamalainen |
Initial th_vprintf_put_float() stub.
|
Mon, 29 Feb 2016 16:12:10 +0200 |
Matti Hamalainen |
Rename s/th_printf_ctx/th_vprintf_cts/g.
|
Mon, 29 Feb 2016 15:49:07 +0200 |
Matti Hamalainen |
Rename functions s/th_printf_vput/th_vprintf_put/g.
|
Mon, 29 Feb 2016 13:49:12 +0200 |
Matti Hamalainen |
Check %p for ll and L modifiers and error out on them.
|
Mon, 29 Feb 2016 13:46:01 +0200 |
Matti Hamalainen |
Some work on pointer formatter %p.
|
Mon, 29 Feb 2016 13:17:37 +0200 |
Matti Hamalainen |
Rename some internal functions.
|
Mon, 29 Feb 2016 13:16:49 +0200 |
Matti Hamalainen |
Some cleanup work on th_printf_vput_int(). Passes more tests, but it's not perfect.
|
Mon, 29 Feb 2016 12:00:23 +0200 |
Matti Hamalainen |
Zero padding is done differently, so do not hand TH_PF_ZERO here.
|
Thu, 25 Feb 2016 11:53:08 +0200 |
Matti Hamalainen |
Simplify th_printf_vbuf*() helpers.
|
Thu, 25 Feb 2016 11:51:52 +0200 |
Matti Hamalainen |
We should OR to the flags instead of forcing them for %p. :S
|
Thu, 25 Feb 2016 10:58:48 +0200 |
Matti Hamalainen |
More work.
|
Thu, 25 Feb 2016 09:49:53 +0200 |
Matti Hamalainen |
Use th_printf_vput_repch() where appropriate.
|
Thu, 25 Feb 2016 09:26:31 +0200 |
Matti Hamalainen |
Delete commented out code.
|
Thu, 25 Feb 2016 09:24:08 +0200 |
Matti Hamalainen |
Change where we bail out from th_printf_vput_int() when th_printf_vbuf_int*() fail.
|
Thu, 25 Feb 2016 09:17:54 +0200 |
Matti Hamalainen |
Modularize some of the padding code better.
|
Thu, 25 Feb 2016 09:06:13 +0200 |
Matti Hamalainen |
Rename internal helper functions th_printf_altfmt_{x,o} to th_printf_altfmt_{hex,oct}
|
Wed, 24 Feb 2016 01:33:33 +0200 |
Matti Hamalainen |
Remove th_strlen() again. I suppose UTF8 aware functions would make sense at
|
Wed, 24 Feb 2016 00:01:07 +0200 |
Matti Hamalainen |
No need to force inline this.
|
Tue, 23 Feb 2016 21:59:45 +0200 |
Matti Hamalainen |
Cosmetics.
|
Tue, 23 Feb 2016 16:09:30 +0200 |
Matti Hamalainen |
Oops, 10L.
|
Tue, 23 Feb 2016 15:26:29 +0200 |
Matti Hamalainen |
Refactor things to be simpler.
|
Tue, 23 Feb 2016 14:59:07 +0200 |
Matti Hamalainen |
Mostly cosmetics.
|
Tue, 23 Feb 2016 12:55:09 +0200 |
Matti Hamalainen |
Add initial support for ll and L printf modifiers.
|
Tue, 23 Feb 2016 12:54:26 +0200 |
Matti Hamalainen |
Remove redundant check.
|
Tue, 23 Feb 2016 12:15:51 +0200 |
Matti Hamalainen |
Fix th_printf_vput_intstr() so that most tests pass. Not certain how
|
Tue, 23 Feb 2016 11:23:32 +0200 |
Matti Hamalainen |
Rename a variable.
|
Tue, 23 Feb 2016 10:36:24 +0200 |
Matti Hamalainen |
Rename a variable.
|
Tue, 23 Feb 2016 01:42:52 +0200 |
Matti Hamalainen |
Comment out th_printf_vput_size_t() for now.
|
Tue, 23 Feb 2016 01:42:34 +0200 |
Matti Hamalainen |
Some work on sign handling.
|
Mon, 22 Feb 2016 23:43:50 +0200 |
Matti Hamalainen |
Fix float tests (type was int) :D
|
Mon, 22 Feb 2016 22:52:45 +0200 |
Matti Hamalainen |
Add f_prec arguments to helpers and call points.
|
Mon, 22 Feb 2016 22:51:24 +0200 |
Matti Hamalainen |
Constify.
|
Mon, 22 Feb 2016 21:56:23 +0200 |
Matti Hamalainen |
Split some things to a template file th_printf1.c
|
Mon, 22 Feb 2016 18:31:11 +0200 |
Matti Hamalainen |
Refactor how various printf modifier flags etc. are handled. Still needs
|
Mon, 22 Feb 2016 18:29:53 +0200 |
Matti Hamalainen |
Cosmetics.
|
Mon, 22 Feb 2016 16:41:58 +0200 |
Matti Hamalainen |
Reverse order of checks.
|
Mon, 22 Feb 2016 13:51:14 +0200 |
Matti Hamalainen |
Add check for (currently unsupported) length modifiers.
|
Mon, 22 Feb 2016 13:50:44 +0200 |
Matti Hamalainen |
Cosmetic.
|
Mon, 22 Feb 2016 13:45:07 +0200 |
Matti Hamalainen |
Rename some function arguments and variables.
|
Mon, 22 Feb 2016 13:43:28 +0200 |
Matti Hamalainen |
Cosmetics.
|
Mon, 22 Feb 2016 13:15:57 +0200 |
Matti Hamalainen |
Cosmetics.
|
Mon, 22 Feb 2016 12:01:29 +0200 |
Matti Hamalainen |
Remember to initialize th_printf_ctx.ipos to 0!
|
Mon, 22 Feb 2016 11:53:47 +0200 |
Matti Hamalainen |
Implement th_printf_vput_pad() helper and use it where needed.
|
Mon, 22 Feb 2016 11:49:05 +0200 |
Matti Hamalainen |
Add th_printf_ctx.ipos and use it for return values. It's a hack. :S
|
Mon, 22 Feb 2016 11:48:23 +0200 |
Matti Hamalainen |
Comment out case '%', it's superfluous here.
|
Mon, 22 Feb 2016 11:47:54 +0200 |
Matti Hamalainen |
Rename internal functions and add a typedef for function pointer used for vputch().
|
Wed, 17 Feb 2016 14:13:22 +0200 |
Matti Hamalainen |
Add th_strlen().
|
Wed, 17 Feb 2016 13:27:23 +0200 |
Matti Hamalainen |
Found some nasty bugs hiding in th_str{n}casecmp() functions via unit tests. Fixed.
|
Wed, 17 Feb 2016 12:59:51 +0200 |
Matti Hamalainen |
Check for NULL fmt.
|
Tue, 16 Feb 2016 22:27:00 +0200 |
Matti Hamalainen |
Fix '%c' support.
|
Tue, 16 Feb 2016 21:27:19 +0200 |
Matti Hamalainen |
Fix handling of negative values.
|
Tue, 16 Feb 2016 20:53:10 +0200 |
Matti Hamalainen |
More work on printing.
|
Tue, 16 Feb 2016 20:32:02 +0200 |
Matti Hamalainen |
More work on printing functions.
|
Tue, 16 Feb 2016 19:05:00 +0200 |
Matti Hamalainen |
Hmm .. fix %c handling.
|
Tue, 16 Feb 2016 18:39:31 +0200 |
Matti Hamalainen |
Implement %c.
|
Tue, 16 Feb 2016 18:21:54 +0200 |
Matti Hamalainen |
Add check for NULL strings.
|
Tue, 16 Feb 2016 18:19:37 +0200 |
Matti Hamalainen |
Use special error codes for syntax errors in format string.
|
Tue, 16 Feb 2016 18:17:33 +0200 |
Matti Hamalainen |
Rename internal function th_vput_itoa() to th_vput_int()
|
Tue, 16 Feb 2016 16:40:31 +0200 |
Matti Hamalainen |
Some more preparation work for precision support.
|
Tue, 16 Feb 2016 16:30:51 +0200 |
Matti Hamalainen |
Initialize and check precision.
|
Tue, 16 Feb 2016 16:30:26 +0200 |
Matti Hamalainen |
Cosmetics.
|