comparison Core/Toolbox.cpp @ 1430:ad94a3583b07

Plugins can send answers as multipart messages
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 29 Jun 2015 17:47:34 +0200
parents 0a355eeeb351
children 8dc80ba768aa
comparison
equal deleted inserted replaced
1429:7366a0bdda6a 1430:ad94a3583b07
1231 1231
1232 default: 1232 default:
1233 break; 1233 break;
1234 } 1234 }
1235 } 1235 }
1236
1237
1238 bool Toolbox::StartsWith(const std::string& str,
1239 const std::string& prefix)
1240 {
1241 if (str.size() < prefix.size())
1242 {
1243 return false;
1244 }
1245 else
1246 {
1247 return str.compare(0, prefix.size(), prefix) == 0;
1248 }
1249 }
1250
1236 } 1251 }
1237 1252