Skip to content

Commit

Permalink
fix case
Browse files Browse the repository at this point in the history
  • Loading branch information
knopkem committed Jan 23, 2020
1 parent cac0622 commit 9be21ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dicom-dimse-native",
"version": "0.0.11",
"version": "0.0.12",
"description": "native addon using imebra dicom toolkit",
"main": "index.js",
"scripts": {
Expand Down
10 changes: 9 additions & 1 deletion src/FindAsyncWorker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,20 @@ using namespace imebra;
using json = nlohmann::json;

namespace {

std::string str_toupper(std::string s) {
std::transform(s.begin(), s.end(), s.begin(),
[](unsigned char c){ return std::toupper(c); }
);
return s;
}

std::string int_to_hex( uint16_t i )
{
std::stringstream stream;
stream << std::setfill ('0') << std::setw(sizeof(uint16_t)*2)
<< std::hex << i;
return stream.str();
return str_toupper(stream.str());
}
}

Expand Down

0 comments on commit 9be21ef

Please sign in to comment.