Patrick Pelissier
|
02d4bf0e09
|
Export method _empty_p for operator TEST_EMPTY for all containers.
|
2018-10-29 11:06:54 +01:00 |
|
Patrick Pelissier
|
38b098b547
|
Port to M_CALL for M-STRING
|
2018-09-10 21:59:29 +02:00 |
|
Patrick Pelissier
|
79d0452427
|
Instead of fixed string, enable using printf like formatting for initialization of a string.
|
2018-09-02 11:05:27 +02:00 |
|
Patrick Pelissier
|
ad5c141a7c
|
Enable support to initialize a string_t with a const char[] within M_LET.
|
2018-09-02 11:00:14 +02:00 |
|
Patrick Pelissier
|
dbb34b75fd
|
Add method for the operator OUT_STR for the default type.
|
2018-08-21 19:26:18 +02:00 |
|
Patrick Pelissier
|
cbb08bdcfc
|
Amend previous commit.
|
2018-08-19 20:28:46 +02:00 |
|
Patrick Pelissier
|
0de829741a
|
Add synonimous for pointers.
|
2018-08-19 20:27:45 +02:00 |
|
Patrick Pelissier
|
7d5608ca0e
|
Export CLEAN method for string.
|
2018-08-13 20:03:06 +02:00 |
|
Patrick Pelissier
|
354327e40b
|
Fix issue for string_strim if string was empty and not allocated.
|
2018-08-03 20:23:24 +02:00 |
|
Patrick Pelissier
|
030510613c
|
Add more assertions.
|
2018-08-03 19:57:38 +02:00 |
|
Patrick Pelissier
|
6b93d7644a
|
Proper constant definition for unicode error.
|
2018-08-02 23:31:17 +02:00 |
|
Patrick Pelissier
|
603fb9db62
|
Replace some size displayed with '%lu' as unsigned long
with proper '%zu' as size_t.
|
2018-08-02 19:34:10 +02:00 |
|
Patrick Pelissier
|
750ba93c14
|
Add note.
|
2018-07-18 21:43:27 +02:00 |
|
Patrick Pelissier
|
18be930507
|
Fix bug in case of error returned by vsnprintf:
the buffer may have been corrupted in case of error.
Clean it before returning.
|
2018-07-18 21:41:52 +02:00 |
|
Patrick Pelissier
|
815bf5f0e0
|
Include proper header and do not depend on other headers to include it.
|
2018-07-16 21:45:28 +02:00 |
|
Patrick Pelissier
|
4af48724ce
|
Update after internal review.
|
2018-07-16 21:43:17 +02:00 |
|
Patrick Pelissier
|
96202aa78f
|
Do not use reserved identifiers of the C standard (See 7.1.3 Reserved identifiers)
|
2018-07-14 14:35:14 +02:00 |
|
Patrick Pelissier
|
817724ce39
|
Fix issue for get_word:
the separators need to be skipped first.
|
2018-06-29 19:40:35 +02:00 |
|
Patrick Pelissier
|
7d7af8cf59
|
Add a name to the structure.
|
2018-06-27 20:10:12 +02:00 |
|
Patrick Pelissier
|
fe38244d7c
|
Micro optimisation.
|
2018-06-02 19:31:07 +02:00 |
|
Patrick Pelissier
|
949d12052e
|
Update
|
2018-05-16 07:52:37 +02:00 |
|
Patrick Pelissier
|
2af35673bb
|
Update comments about TODO.
|
2018-05-15 21:02:34 +02:00 |
|
Patrick Pelissier
|
122cf63a3f
|
Preshift the state by 8, to avoid a shift within the decoder.
Rewrite the size_u to avoid a branch.
|
2018-05-03 22:11:43 +02:00 |
|
Patrick Pelissier
|
64080fadd3
|
Update comments.
|
2018-05-03 13:07:52 +02:00 |
|
Patrick Pelissier
|
1009cd6ed4
|
Export _parse_str function.
|
2018-05-03 13:05:45 +02:00 |
|
Patrick Pelissier
|
2ad8ae3451
|
Rewrite parse_str interface to be more like strol
|
2018-05-03 12:59:10 +02:00 |
|
Patrick Pelissier
|
47a49263ae
|
Add function _parse_str for string.
|
2018-05-02 19:36:51 +02:00 |
|
Patrick Pelissier
|
a12e3534c6
|
Rewrite I/O functions so that they handle properly
non printable characters.
|
2018-04-21 10:26:05 +02:00 |
|
Patrick Pelissier
|
da07a5b613
|
string_strim allows optionnal second argument which list the characters to strim.
|
2018-04-20 20:46:44 +02:00 |
|
Patrick Pelissier
|
b5f4f2fc4b
|
Finish splitting m_core_clz into m_core_clz32 & m_core_clz64
|
2018-04-15 00:10:38 +02:00 |
|
Patrick Pélissier
|
8c34f44dae
|
Finish fixing for 32 bits / clz
|
2018-04-14 23:14:21 +02:00 |
|
Patrick Pelissier
|
80d78e3270
|
Add bounded string cte macro
|
2018-04-11 22:42:22 +02:00 |
|
Patrick Pelissier
|
63874694f8
|
Rewrite the code to avoid some silly warnings on some implementation.
|
2018-04-08 20:01:04 +02:00 |
|
Patrick Pelissier
|
8e114d6fe4
|
Add bounded string definition so that you can easily use them for a container.
|
2018-03-24 08:42:15 +01:00 |
|
Patrick Pelissier
|
d05bb49f5d
|
Add more assertions.
Change prototype of fputs to return the error / success status.
|
2018-03-23 21:25:55 +01:00 |
|
Patrick Pelissier
|
210e05f7fc
|
Update copyright to 2018
|
2018-01-29 20:28:30 +01:00 |
|
Patrick Pelissier
|
778bc4072b
|
Rename parameter
|
2018-01-24 22:23:56 +01:00 |
|
Patrick Pelissier
|
4d41774345
|
Rename STRING_CONTRACT into internal macro STRINGI_CONTRACT
|
2018-01-23 21:45:45 +01:00 |
|
Patrick Pelissier
|
e65abed8a9
|
Fix issue with C++
|
2017-12-30 12:05:25 +01:00 |
|
Patrick Pelissier
|
57ec4514d4
|
Fix bug detected by scan-build
|
2017-12-30 10:30:49 +01:00 |
|
Patrick Pelissier
|
c08504863c
|
Simplify fgets to avoid using strchr (faster & simpler)
Simplify fgets to avoid using strchr (faster & simpler)
Simplify fgets to avoid using strchr (faster & simpler)
|
2017-12-23 00:39:11 +01:00 |
|
Patrick Pelissier
|
48828f085b
|
Add comment
|
2017-12-13 21:43:27 +01:00 |
|
Patrick Pelissier
|
df73de9e10
|
Add comments.
|
2017-12-13 21:41:42 +01:00 |
|
Patrick Pelissier
|
a24464cfed
|
Return size of the encoding (in case of)
|
2017-12-09 18:11:58 +01:00 |
|
Patrick Pelissier
|
ca5263b488
|
Update comments
|
2017-12-09 16:57:55 +01:00 |
|
Patrick Pelissier
|
5cbae75ed0
|
Update
|
2017-12-09 16:54:04 +01:00 |
|
Patrick Pelissier
|
d0ecc03abe
|
Add some more assertions
|
2017-12-09 16:39:58 +01:00 |
|
Patrick Pelissier
|
417571755e
|
Add assertions
|
2017-12-09 16:39:28 +01:00 |
|
Patrick Pelissier
|
f1ed954dd0
|
Add functions
|
2017-12-09 16:38:59 +01:00 |
|
Patrick Pelissier
|
5f98cc1eb6
|
Factorisation
|
2017-12-09 16:36:46 +01:00 |
|