mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-24 16:51:25 -04:00
FeedReader:
- Remove "sid=" from link Moved stringToUpperCase and stringToLowerCase from rsinit.cc to util/rsstring.cc git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6029 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e66a9117e2
commit
0f26b85a88
4 changed files with 44 additions and 44 deletions
|
@ -269,3 +269,21 @@ int rs_sprintf_append(std::string &str, const char *fmt, ...)
|
|||
|
||||
return retval;
|
||||
}
|
||||
|
||||
void stringToUpperCase(const std::string& s, std::string &upper)
|
||||
{
|
||||
upper = s ;
|
||||
|
||||
for(uint32_t i=0;i<upper.size();++i)
|
||||
if(upper[i] > 96 && upper[i] < 123)
|
||||
upper[i] -= 97-65 ;
|
||||
}
|
||||
|
||||
void stringToLowerCase(const std::string& s, std::string &lower)
|
||||
{
|
||||
lower = s ;
|
||||
|
||||
for(uint32_t i=0;i<lower.size();++i)
|
||||
if(lower[i] > 64 && lower[i] < 91)
|
||||
lower[i] += 97-65 ;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue