-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hex2bytes for Vector{UInt8} (#23267)
* hex2bytes for Vector{UInt8} * Incorporated review comments. * Added example code. * Modified to support AbstractArray * Fixed comments and changed to AbstractVector * Example output fixed. * updated the description. * Add method to stdlib index * length should not be used with AbstractArray() in exception handling as it can raise exception. * removed resize as it may not work for subarrays. * Added subarray test cases. * typo fixed * Review comments incorporated related to comments and test cases. * Checking in code provided by stevengj There are some test case failures reported related to views. * Update util.jl further condense implementation and documentation, merging with `hex2bytes(s::AbstractString)` * test updates use ===, not ==, to test that operation occurs in-place, and `hex2bytes!` now throws an error for incorrect output length * fix hex2bytes for views (where start is not an index) * rm redundant length check
- Loading branch information
1 parent
3a24cbb
commit eaca8f2
Showing
4 changed files
with
74 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -755,6 +755,7 @@ export | |
graphemes, | ||
hex, | ||
hex2bytes, | ||
hex2bytes!, | ||
ind2chr, | ||
info, | ||
is_assigned_char, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters