commit | 3995e3e91407f759d27f6b1f9354a53e37319b42 | [log] [tgz] |
---|---|---|
author | Zachary Turner <zturner@google.com> | Tue Apr 25 20:21:35 2017 +0000 |
committer | Zachary Turner <zturner@google.com> | Tue Apr 25 20:21:35 2017 +0000 |
tree | e478929474128de9e997f77bcde5a535f5734d00 | |
parent | 953d6af0d12faf5b41ce4dc4b37ece615741e95d [diff] |
[StringExtras] Add a fromHex to complement toHex. We already have a function toHex that will convert a string like "\xFF\xFF" to the string "FFFF", but we do not have one that goes the other way - i.e. to convert a textual string representing a sequence of hexadecimal characters into the corresponding actual bytes. This patch adds such a function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301356 91177308-0d34-0410-b5e6-96231b3b80d8