Mercurial > hg > orthanc-wsi
comparison Applications/ApplicationToolbox.cpp @ 106:18e9a5429cc4
clarification about --max-size option
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 19 Aug 2017 10:52:59 +0200 |
parents | 82357198e5e6 |
children | a51dee6a1515 |
comparison
equal
deleted
inserted
replaced
105:42dcf1438943 | 106:18e9a5429cc4 |
---|---|
161 boost::regex pattern("([0-9]*),([0-9]*),([0-9]*)"); | 161 boost::regex pattern("([0-9]*),([0-9]*),([0-9]*)"); |
162 | 162 |
163 bool ok = false; | 163 bool ok = false; |
164 boost::cmatch what; | 164 boost::cmatch what; |
165 | 165 |
166 // Set white as the default color to avoid compiler warnings | |
167 red = 255; | |
168 green = 255; | |
169 blue = 255; | |
170 | |
166 try | 171 try |
167 { | 172 { |
168 if (regex_match(color.c_str(), what, pattern)) | 173 if (regex_match(color.c_str(), what, pattern)) |
169 { | 174 { |
170 int r = boost::lexical_cast<int>(what[1]); | 175 int r = boost::lexical_cast<int>(what[1]); |