ChangeLog 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  1. Legend:
  2. - Bug fix
  3. + New feature
  4. * Changes
  5. ! Important
  6. 2024-02-05 __vic
  7. + logger: std::format support
  8. 2024-02-27 __vic
  9. * ascii.h: protection from isascii() macro
  10. * readonly_cstring: duplicated code removed
  11. 2024-02-16 __vic
  12. * type_traits.h:
  13. + conditional
  14. + conjunction, disjunction, negation
  15. 2023-10-20 __vic
  16. + __VIC_INLINE_CONSTEXPR_VAR
  17. - __VIC_SWAP_HEADER definition was invalid
  18. 2023-10-06 __vic
  19. + C++23 mode support
  20. * C++17 is used by default
  21. 2023-04-07 __vic
  22. + __VIC_IF_CONSTEVAL
  23. 2022-03-02 __vic
  24. - readonly_cstring: compare(const char *,readonly_cstring)
  25. 2022-02-21 __vic
  26. * throw_errno: it's enough to override only one function
  27. 2022-02-11 __vic
  28. * logger: fields layout reorganized to be more compact
  29. 2022-02-09 __vic
  30. + string_buffer: operator<<(string_buffer &&, T)
  31. 2021-12-07 __vic
  32. + string_ref: conversion from/to std::string_view
  33. + string_buffer supports std::string_view (via string_ref)
  34. * ascii::equal_icase() uses std::string_view if available
  35. 2021-12-06 __vic
  36. * string_utils.h:
  37. * starts_with(), ends_with() use std::string_view if available
  38. * trimmed()-functions use std::string_view if available
  39. 2021-12-03 __vic
  40. * logger:
  41. * use std::string_view if available
  42. + to_string_view(logger::severity)
  43. * str2num.h:
  44. + use [[nodiscard]]
  45. * use std::string_view if available
  46. 2021-11-19 __vic
  47. * type_traits.h: using std::remove_cvref in C++20 mode
  48. 2021-10-13 __vic
  49. * bits.h: msb_ones(), lsb_ones(), get_lsbs() are constexpr now
  50. 2021-10-04 __vic
  51. + memory.h: store_unaligned()
  52. 2021-06-11 __vic
  53. + logger: notice level
  54. 2021-05-03 __vic
  55. - bits.h: __VIC_ASSERT_UINT() in C++98 mode
  56. + algorithm.h:
  57. + skip_if_front(), skip_if_back()
  58. * skip_if_{front,back}() are used inside trim-functions
  59. 2021-04-30 __vic
  60. * sift() uses set_of_chars
  61. 2020-12-22 __vic
  62. + ascii.h: isblank(), isprint(), isgraph(), ispunct(), iscntrl()
  63. 2020-12-16 __vic
  64. + base16.h: base16::encode_byte_{lower|upper}()
  65. 2020-05-25 __vic
  66. * bits.h: MSVC++ __popcnt() can cause crash if not supported by CPU so
  67. isn't used by default. Define __VIC_POPCNT to use it
  68. 2020-02-24 __vic
  69. ! string_utils.h: Renamed:
  70. ! trim_left() -> trim_front()
  71. ! trim_right() -> trim_back()
  72. ! trimmed_left() -> trimmed_front()
  73. ! trimmed_right() -> trimmed_back()
  74. ! pad_left() -> pad_front()
  75. ! pad_right() -> pad_back()
  76. 2020-02-10 __vic
  77. * memory.h: load_unaligned(): fallback to std::memcpy() if no better
  78. alternatives
  79. ! Renamed object_pool -> fixed_vector
  80. 2020-01-28 __vic
  81. + throw_errno.h and throw_errno() are parts of the public API now
  82. ! defs.h: uninitialized/noinit removed
  83. 2019-12-24 __vic
  84. * logger: severity strings moved to the own object file
  85. 2019-12-19 __vic
  86. - str2num.h: signed_decimal_parser: out of buffer access if input string
  87. is "+" or "-"
  88. 2019-10-21 __vic
  89. + Support for compilers without any form of 64-bit integers (long long)
  90. 2019-07-02 __vic
  91. - string_utils.h: sift_if(): redundant past the end predicate check
  92. 2019-06-26 __vic
  93. + Workaround for Clang 3.9+ issue - __has_cpp_attribute(nodiscard) returns
  94. 1 even when used mode is C++14 or less
  95. 2019-06-21 __vic
  96. - "__VIC_NO_BUITLINS" was used instead of __VIC_NO_BUILTINS
  97. + test/bits_no_biltins.cpp
  98. + test/endian_no_builtins.cpp
  99. 2019-05-31 __vic
  100. + bits.h: ceil_log2(), floor_log2()
  101. 2019-05-22 __vic
  102. * bits.h:
  103. + ceil2(), floor2(), ispow2(), msb_position()
  104. * rotl()/rotr() use language types instead of cstdint typedefs
  105. 2019-05-21 __vic
  106. * Renamed __VIC_NO_GCC_BUITLINS -> __VIC_NO_BUITLINS
  107. + bits.h: popcount()
  108. 2019-04-01 __vic
  109. * logger:
  110. + shrink_buffer()
  111. ! No autoshrink
  112. 2019-03-25 __vic
  113. - bits.h: UB on rot{l|r}(..., 0)
  114. 2019-03-13 __vic
  115. + memory.h:
  116. + load_unaligned()
  117. 2019-03-12 __vic
  118. + [[nodiscard]] support
  119. + endian.h: endian::to/from_big/little()
  120. 2019-02-13 __vic
  121. + endian.h:
  122. + endian
  123. + swab16(), swab32(), swab64()
  124. 2019-02-08 __vic
  125. + tchar.h: tchar::empty(), tchar::equal()
  126. 2019-02-05 __vic
  127. + doc: russian translation
  128. 2019-01-31 __vic
  129. * object_pool: renamed push() -> push_allocated()
  130. 2018-12-17 __vic
  131. + writers/null.h:
  132. + null_writer
  133. 2018-11-20 __vic
  134. * base64::decode(): no whitespaces skip
  135. 2018-11-14 __vic
  136. * stdio_file:
  137. * Renamed attach() -> attach_handle(), detach() -> detach_handle()
  138. + attach_handle() returns old value
  139. 2018-10-30 __vic
  140. + Handmade integers to text converters (to_text_append())
  141. 2018-10-24 __vic
  142. * Underlying type is specified for logger::severity
  143. 2018-10-08 __vic
  144. + readers, writers: make_...()
  145. + utf{8|16}: make_reader(), make_writer()
  146. + unicode.h: utf_transcode()
  147. + writers/iterator.h:
  148. + iterator_writer
  149. 2018-09-28 __vic
  150. + utf16/defs.h:
  151. + utf16::code_unit_t
  152. + utf16/status.h:
  153. + utf16::status
  154. + utf16::is_error(), utf16::throw_if_error()
  155. + utf16/exceptions.h:
  156. + utf16::bad_encoding and derivatives
  157. + utf16/reader.h:
  158. + utf16::reader
  159. + utf16/writer.h:
  160. + utf16::writer
  161. 2018-09-27 __vic
  162. + unicode.h:
  163. + unicode_t
  164. + unicode_max, unicode_bom, unicode_replacement_char
  165. + utf8/defs.h:
  166. + utf8::is_continuation_byte()
  167. + utf8/status.h:
  168. + utf8::status
  169. + utf8::is_error(), utf8::throw_if_error()
  170. + utf8/exceptions.h:
  171. + utf8::bad_encoding and derivatives
  172. + utf8/reader.h:
  173. + utf8::reader
  174. + utf8/writer.h:
  175. + utf8::writer
  176. 2018-09-26 __vic
  177. * Readers:
  178. * Renamed range_reader[_n] -> iterator_reader[_n]
  179. * basic_string_reader is implemented using raw pointer +
  180. iterator_reader_n
  181. + position() function for memory readers
  182. 2018-09-19 __vic
  183. * defs.h: unitialized can't be constructed using just {}
  184. * logger:
  185. * Renamed accepts_*() -> *_visible()
  186. + class output
  187. + settings_t
  188. 2018-09-18 __vic
  189. + C++14 and C++17 modes support
  190. + set_of_chars: C++14 constexpr
  191. 2018-09-03 __vic
  192. * doc: make https://validator.w3.org/ happy
  193. * base16, base64: try_decode() added
  194. 2018-08-09 __vic
  195. * str2num.h: to_errno(number_parse_status) removed
  196. 2018-06-21 __vic
  197. * LLVM libc++ defines nullptr macro in C++98 mode
  198. 2018-06-06 __vic
  199. + __VIC_SCOPED_ENUM_BEGIN/END
  200. * logger: renamed message_severity -> severity_t
  201. + str2num.h: number_parse_status
  202. 2018-06-05 __vic
  203. * string_ref.h: basic_string_ref: operator== uses memcmp()
  204. 2018-05-21 __vic
  205. + doc: stable links for chapters
  206. * Renamed meta.h -> type_traits.h
  207. 2018-05-15 __vic
  208. * doc/document.dtd is deterministic now
  209. 2018-05-14 __vic
  210. + object_pool: full()
  211. 2018-05-07 __vic
  212. * Don't catch exceptions by value even in tests
  213. 2018-03-28 __vic
  214. * bits.h: lo/hi_nibble() return uint8_t instead of int
  215. 2018-01-26 __vic
  216. + Tests for readers
  217. + Tests for writers
  218. - readers/cstring.h: invalid code
  219. 2017-12-26 __vic
  220. + meta.h: index_sequence, make_index_sequence
  221. 2017-12-13 __vic
  222. * doc/html.xsl: more tolerant to retarded XSLT processors (oracle) TOC
  223. generation code
  224. 2017-12-08 __vic
  225. * meta.h:
  226. + remove_reference, remove_cvref
  227. + Template aliases for type transformers
  228. + waitable_event.h:
  229. + waitable_event for C++11 mode only
  230. 2017-12-07 __vic
  231. + GNU Make makefiles
  232. 2017-12-05 __vic
  233. * string_buffer can be compiled even when old compatible ABI is used by
  234. GNU libstdc++
  235. + Intel C++ 17.0+ compiler support
  236. 2017-11-28 __vic
  237. + string_utils.h: starts_with(), ends_with()
  238. 2017-11-14 __vic
  239. * to_text_append():
  240. - Small buffer for 8-byte long types
  241. - printf() "ll" length modifier is not always available
  242. * Using snprint() in C++11 mode
  243. 2017-09-21 __vic
  244. * ascii.h:
  245. * Moved from bits.h:
  246. * to_hex_digit_upper() -> ascii::toxdigit_upper()
  247. * to_hex_digit_lower() -> ascii::toxdigit_lower()
  248. * hex_to_number() -> ascii::xdigit_to_number()
  249. + ascii::todigit()
  250. + ascii::digit_to_number()
  251. 2017-09-18 __vic
  252. * Renamed io.h -> stdio_file.h
  253. 2017-09-14 __vic
  254. * readers.h removed. All content moved to:
  255. + readers/range.h (range_reader, range_reader_n)
  256. + readers/container.h (container_reader)
  257. + readers/cstring.h (basic_cstring_reader, cstring_reader)
  258. * writers.h removed. All content moved to:
  259. + writers/push_back.h (push_back_writer)
  260. * string_utils.h:
  261. * string_reader moved to:
  262. + readers/string.h
  263. * string_writer moved to:
  264. + writers/string.h
  265. * io.h:
  266. * cstream_reader moved to:
  267. + readers/cstream.h
  268. * cstream_writer moved to:
  269. + writers/cstream.h
  270. + read(std::FILE *, unsigned char &)
  271. + readers/cstream.h: cstream_reader: read(unsigned char &)
  272. * readers/cstring.h:
  273. + basic_cstring_reader<char>: read(unsigned char &)
  274. * readers/string.h:
  275. + basic_string_reader
  276. + basic_string_reader<char>: read(unsigned char &)
  277. * writers/string.h:
  278. + basic_string_writer
  279. 2017-06-30 __vic
  280. * Renamed string_ops.h -> string_utils.h
  281. * Renamed static_string -> readonly_cstring
  282. 2017-01-31 __vic
  283. * str2num.h: std::strchr(s,0) returns non-const pointer on MinGW so
  284. tchar::end(s) is used instead
  285. 2017-01-30 __vic
  286. + readers.h:
  287. + range_reader
  288. + range_reader_n
  289. + container_reader
  290. + basic_cstring_reader, cstring_reader
  291. + writers.h:
  292. + push_back_writer
  293. * string_ops.h:
  294. + string_reader
  295. + string_writer
  296. * base16.h: base16: uses readers and writers
  297. * base64.h: base64: uses readers and writers
  298. * io.h:
  299. + read(std::FILE *, char &)
  300. + write(std::FILE *, char)
  301. + cstream_reader
  302. + cstream_writer
  303. 2017-01-23 __vic
  304. - str2num.h: C++98 mode
  305. + iterator.h:
  306. + begin(T[]), end(T[]), cbegin(T[]), cend(T[])
  307. + advance(), next(), prev()
  308. 2017-01-20 __vic
  309. + bin_file.h
  310. + bin_file
  311. + str2num.h: decimal_parser
  312. + base16.h:
  313. + base16::encode_lower(), base16::encode_upper(), base16::decode()
  314. + base64.h:
  315. + base64::encode(), base64::decode()
  316. + base64::encoded_length(), base64::max_decoded_length()
  317. 2017-01-16 __vic
  318. * throw_errno() moved: error.h -> throw_errno.h
  319. 2017-01-13 __vic
  320. + str2num.h
  321. + decimal_to_number()
  322. + decimal_to_number_range()
  323. 2017-01-12 __vic
  324. + meta.h:
  325. + integral_constant, true_type, false_type
  326. + is_same, is_const
  327. + remove_const, remove_volatile, remove_cv
  328. + remove_pointer
  329. + is_signed_integer, is_unsigned_integer
  330. + enable_if, disable_if
  331. + set_of_chars.h:
  332. + set_of_chars
  333. 2017-01-09 __vic
  334. * Renamed trim.h -> string_ops.h
  335. * string_ops.h:
  336. + pad_left(), pad_right()
  337. * sift() treats nullptr as an empty string
  338. + ascii_string.h:
  339. + toupper(), tolower() for strings
  340. + equal_icase() for strings
  341. 2016-12-30 __vic
  342. + ascii.h:
  343. + isdigit(), isxdigit(), isalpha(), isalnum(), isspace(), isascii()
  344. + islower(), isupper()
  345. + tolower(), toupper(), upper_to_lower(), lower_to_upper()
  346. + equal_icase(char,char)
  347. + date_time.h:
  348. + is_leap_year()
  349. + days_in_month()
  350. + days_between_years()
  351. + validate_date(), validate_time(), validate_date_time()
  352. 2016-12-29 __vic
  353. + stdint.h:
  354. + [u]int<N>_t, [u]int_least<N>_t, [u]int_fast<N>_t, [u]intmax_t,
  355. [u]intptr_t
  356. + int_exactly_bytes<>, uint_exactly_bytes<>
  357. + bits.h:
  358. + lo_nibble(), hi_nibble()
  359. + msb_ones(), lsb_ones()
  360. + get_lsbs()
  361. + ord()
  362. + to_hex_digit_upper(), to_hex_digit_lower()
  363. + hex_to_number()
  364. + swapped_nibbles()
  365. + rotl(), rotr()
  366. 2016-12-28 __vic
  367. + string_buffer: move constructor for std::string
  368. + logger.h:
  369. + logger
  370. 2016-12-26 __vic
  371. + string_ref.h:
  372. + basic_string_ref (string_ref)
  373. + string_buffer: string_ref support
  374. + trim.h:
  375. + trim(), trimmed(), trim_left(), ...
  376. + sift(), sift_if()
  377. 2016-12-23 __vic
  378. + io.h:
  379. + stdio_file
  380. + getline()
  381. + object_pool.h:
  382. + object_pool
  383. + tchar.h
  384. 2016-12-22 __vic
  385. + to_text.h:
  386. + to_text_append()
  387. + string_buffer.h:
  388. + string_buffer
  389. 2016-12-21 __vic
  390. + defs.h:
  391. + nullptr
  392. + non_copyable
  393. + non_heap_allocatable
  394. + array_size()
  395. + static_string.h:
  396. + static_string
  397. + error.h:
  398. + exception
  399. + libc_error
  400. + throw_errno()
  401. 2016-06-23 __vic
  402. * Total revision and rework started in order to publish the code
  403. VERSION 0.6
  404. 2011-05-17 __vic
  405. * The last internal release before rework (no distribution)
  406. VERSION 0.5.1
  407. 2010-09-08 __vic
  408. * The last released version before rework
  409. 2007-08-15 __vic
  410. * The project is started