Parent Directory | Revision Log | Patch
revision 77 by torben, Fri Jun 13 10:10:06 2008 UTC | revision 78 by torben, Sat Jun 14 08:39:40 2008 UTC | |
---|---|---|
# | Line 12 std::string GetSmsCommand(SMS& sms) | Line 12 std::string GetSmsCommand(SMS& sms) |
12 | { | { |
13 | unsigned int pos = sms.message.find(" "); | unsigned int pos = sms.message.find(" "); |
14 | ||
15 | std::string result; | |
16 | ||
17 | if (pos == std::string::npos) | if (pos == std::string::npos) |
18 | return sms.message; | result = sms.message; |
19 | else | else |
20 | return sms.message.substr(0, pos); | result = sms.message.substr(0, pos); |
21 | ||
22 | return Util::str_trim(result); | |
23 | } | } |
24 | ||
25 | std::string GetSmsData(SMS& sms) | std::string GetSmsData(SMS& sms) |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |