Releases: razterizer/Core
Releases · razterizer/Core
release-1.2.1.4
Utf8.h:decode_next_utf8_char32()now returnsch32 = noneif no valid codepoint was found.- Added an
Examplesfolder with anexamples.cppthat will allow you to browse UTF-8 code point blocks. Utf8.h: Adding new functionnum_utf8_codepoints()which returns the number of glyph/character codepoints that are encoded inside of the suppliedstd::string.- Added new header
Keyboard.hwith cross-platform functionsgetch(),press_any_key()andpress_any_key_or_quit(). StringHelper.h: Templetizing functionhex2int()on return type (defaultint) which makes it much more useful.System.h: Functionsis_wsl()andis_windows_cmd()must both be markedinlinefor the static "one call" scheme to be safe.StringHelper.h: Improvedto_lower() / to_upper()functions and adding more variants for a more complete API. Also added a few unit tests for these.StringHelper.h: Added new functionrep_str()akin torep_char().Rand.h: Fixed bug inrand_enum()that caused the last element beforeNUM_ITEMSto never be returned.StringHelper.h: AddinglenI()overloads forstd::string,const char*,std::wstring_view,std::wstringandconst wchar_t*.- Added new header
Term.hcontaining the functions:inline bool is_console_stdout(),inline bool enable_vt_on_stdout(),inline std::wstring utf8_to_utf16(std::string_view s),inline void write_console_w(std::wstring_view ws),inline void write_console_a(std::string_view s),inline TermMode init_terminal_mode(int requested_codepage),inline bool use_ansi_colors(const TermMode& m),inline void emit_text(const TermMode& m, std::string_view s_utf8, std::string_view s_bytes_for_legacy = {})andinline void emit_text_nl(const TermMode& m, std::string_view s_utf8, std::string_view s_bytes_for_legacy = {}).
release-1.1.1.3
- Fixed bug in utf8::encode_char32_codepage() that caused an ASCII character to be unidentified if passiung argument codepage = 437.
release-1.1.0.2
- Added new header Utf8.h with some useful functions for encoding
utf-8bytes to and from anstd::stringobject.
release-1.0.1.1
- Fixed windows warning in Histogram.
- Added version.h to the xcode project.
release-1.0.0.0
- First release.