Niketin
ee8d2f50b7
pattern/bencode: Various fixes ( #393 )
...
* Fix bencode dictionary
When parsing a bencode dictionary, the end character 'e' was never
consumed. This caused a misinterpretation of the character as struct Value of
an unknown type 'e'.
* Fix bencode list
A list was not included in the Value's parsing logic so it may have
been mistakenly parsed as a string.
* Fix std::ctype::isprint not including space
The space character, 0x20, is considered as a printable character in ASCII
and in >=C89. Adding it to the range of std::ctype::isprint also fixes
other std::ctype functions that use it.
* Fix bencode byte string formatting
Byte strings do not render nicely in pattern data's value column if they
contain non-printable characters. This commit makes the value of byte
strings to be surrounded by quotation marks, and renders a warning text
without quotation marks if the byte string contains non-printable
characters.
2025-05-10 13:34:36 +02:00
paxcut
c0fc748de6
fix: rgb color attribute is always blue.
...
The color attribute does not nclude an alpha component but the RGB types were including an alpha of 255 in their color attributes. The 0xFF was being assigned to the blue component hence the error.
2025-04-30 08:40:32 -07:00
C3pa
66fc006b08
includes/std: Update hex::dec::zlib_decompress description ( #364 )
...
docs: Update hex::dec::zlib_decompress description
2025-03-22 13:51:00 +01:00
Nik
c5fa53dcea
includes/type: Make type::Formatted actually work as documented
2025-01-19 18:13:48 +01:00
Nik
083042632d
includes/hex: Hide implementation data of json types
2025-01-16 19:15:10 +01:00
JTurtle
4092dad428
includes/type: Fix error in float16 format function ( #336 )
2025-01-05 09:46:09 +01:00
Nik
e8cea09477
include/hex: Added definitions for new built-in types
2024-12-24 12:39:28 +01:00
Andrey Andreyevich Bienkowski
883433b260
includes/type: Fix parsing of signed leb128 ( #333 )
2024-12-18 21:49:16 +01:00
WerWolv
3f42dddd19
tests: Improve unit tests for includes and patterns
2024-12-14 16:34:27 +01:00
WerWolv
d14f8de459
includes/std: Added new palette control functions
2024-12-01 17:15:24 +01:00
Nik
b9f5f1668b
includes/type: Fixed use of Reinterpreter type
2024-11-24 14:53:30 +01:00
Mrmaxmeier
c533017d0b
git: Various style fixes everywhere, removing whitespaces ( #321 )
...
* repo-wide: trim trailing spaces
Note: This doesn't touch the .tbl files in encodings/ since they include
meaningful trailing spaces (`20= `)
* patterns: clean up duplicate semicolons
* ELF: add header magic check
* glTF: use type::Magic for magic value
* glTF: check that the file size in the header matches
* xgstexture: fix generics syntax for magic value
* JPEG: define hex enum with 0x00 instead of 0X00
* CI: update deprecated actions
---------
Co-authored-by: Nik <werwolv98@gmail.com >
2024-11-24 11:41:26 +01:00
Martín Montané
c8ebb3eb8a
includes/std: Added checks to ends_with and starts_with to prevent failure ( #295 )
...
Fixing cases where part is longer than string, this cases should both return false instead of failing.
Co-authored-by: Nik <werwolv98@gmail.com >
2024-11-17 13:54:03 +01:00
Nik
8a6bb6612b
includes/std: Fixed standard library errors with latest nightly
2024-11-17 13:51:51 +01:00
BobSmun
d961271c5d
includes/std: Fixed std::core::set_pattern_comment ( #289 )
2024-08-20 20:33:18 +02:00
Nik
8f1f4911a0
includes/std: Fixed value display error with std::string::NullString
2024-08-07 22:12:25 +02:00
WerWolv
196695e37b
includes/std: Allow std::print() and std::format() to take any value as format argument again
2024-07-12 21:19:43 +02:00
WerWolv
bced518508
includes/std: Added std::mem::reached() for use with while-sized arrays
2024-07-10 21:32:55 +02:00
WerWolv
2f795fc23c
includes/std: Added attrs library
2024-07-10 21:32:35 +02:00
C3pa
5ff783d571
includes: Fix various spelling errors ( #270 )
...
docs: fix some spelling errors
Related issue:
https://github.com/WerWolv/ImHex/issues/1139
2024-07-10 21:09:15 +02:00
WerWolv
4299243e95
includes/std: Added hex::dec::lz4_decompress()
2024-07-07 15:51:40 +02:00
WerWolv
18f968df5b
includes/std: Drastically improved std::mem::MagicSearch, added find_string and find_string_in_range
2024-07-04 20:47:39 +02:00
WerWolv
f797c711ca
includes/std: Optimize std::bit::popcount
2024-07-04 17:58:12 +02:00
WerWolv
8bdcd814a9
includes/std: Added std::unimplemented()
2024-07-02 18:00:52 +02:00
WerWolv
d7811ff5e9
patterns: Replaced old bitfield order attributes with new ones
...
Fixes #265
2024-07-02 18:00:41 +02:00
WerWolv
4d0b3e21bc
includes/std: Added better documentation to std::mem::current_bit_offset()
2024-07-02 18:00:05 +02:00
WerWolv
acd6903b21
includes/std: Added crc8, crc16 and crc64 functions
...
Fixes #226
2024-07-02 17:59:40 +02:00
Nik
65ef3a7783
includes/std: Removed cyclic dependency between std.mem and std.string
2024-07-01 23:47:09 +02:00
Nik
21a0b99eac
includes/std: Added missing string include to std::mem
2024-06-29 23:25:58 +02:00
Nik
a0bb71be58
includes/std: Added std::core::execute_function()
2024-06-29 11:53:43 +02:00
WerWolv
b540ead0ae
includes/std: Added std::IIndexed as a nicer wrapper around std::core::array_index()
2024-06-25 22:52:57 +02:00
Nik
26878548f0
includes/std: Fixed NullString not including null terminator and not checking for string end correctly
2024-06-23 18:45:13 +02:00
C3pa
e4c9d86755
includes/std: Add some fixes from the WerWolv/Documentation repo ( #262 )
...
* Escape backslash in DOSPath docs
* Spelling correction for std\sys.pat
---------
Co-authored-by: Nik <werwolv98@gmail.com >
2024-06-22 10:59:36 +02:00
WerWolv
2a3de1b705
includes: Tabs -> Spaces
2024-06-22 10:46:30 +02:00
WerWolv
e02280f9ee
includes/type: Added arbitrarily formattable type
2024-06-20 21:21:42 +02:00
WerWolv
bbba68cef7
includes/std: Added null-terminated strings to the strings library
2024-06-20 21:21:30 +02:00
iTrooz
7ea34e410a
fix: add missing ; to core.pat
2024-05-20 00:13:52 +02:00
Marijn Kneppers
891968db53
includes/std: Add create_directories to std ( #250 )
2024-05-19 16:46:05 +02:00
Marijn Kneppers
5799d1d7ea
includes/std: Make std::file::flush not delete files ( #246 )
2024-05-12 23:39:49 +02:00
Marijn Kneppers
9c6bfeb50f
includes/hex: Added hex::core::add_virtual_file ( #247 )
2024-05-12 23:38:57 +02:00
Zwip-Zwap Zapony
5e82bfadac
includes/std: Replace get_attribute_value with get_attribute_argument ( #233 )
...
Update get_attribute_argument/get_attribute_value
Replace std::core::get_attribute_value with std::core::get_attribute_argument
Mark optional arguments with square brackets in the documentation comments, and list their default values
2024-03-21 21:48:53 +01:00
paxcut
439f04e19b
includes/std: Fixed "unknown function fm" error was shown in pattern data. ( #225 )
2024-03-15 21:54:03 +01:00
Nik
9af8d7e693
includes/std: Added back #pragma once to mem library
2024-02-27 20:28:02 +01:00
WerWolv
dac2e0f786
patterns: Fixed a few errors
2024-02-25 22:59:32 +01:00
Nik
f70b7066b9
includes: Switch over to import statements ( #224 )
...
* Update includes and patterns to new import system
* Update namespaces to new syntax
2024-02-25 22:04:41 +01:00
Nik
0e2966f10d
includes/std: Added missing std::core::set_pattern_comment function
2024-02-09 13:23:51 +01:00
Nik
b2bc248447
includes/hex: SectionId -> Section
2024-01-31 08:24:03 +01:00
Nik
e6589ecba1
includes/std: Make std::mem::read_string take in a larger size
2024-01-31 08:22:25 +01:00
Nik
cf18580960
includes/hex: Added decompress functions
2024-01-27 17:05:08 +01:00
paxcut
fb5fcbafc1
includes/type: Changes to magic type to include address of failed asserts. ( #217 )
2024-01-10 00:36:17 +01:00