| 165 | | if (!boost::filesystem::exists(fpath)) |
|---|
| 166 | | { |
|---|
| 167 | | std::string lcExt(fileName); |
|---|
| 168 | | lcExt[lcExt.length()-1] = tolower(lcExt[lcExt.length()-1]); |
|---|
| 169 | | boost::filesystem::path lcpath(lcExt); |
|---|
| 170 | | if (boost::filesystem::exists(lcpath)) |
|---|
| | 165 | if (!boost::filesystem::exists(fpath) && fpath.has_leaf() && fpath.has_branch_path()) |
|---|
| | 166 | { |
|---|
| | 167 | std::string lcLeaf = fpath.leaf(); |
|---|
| | 168 | std::string ucLeaf = fpath.leaf(); |
|---|
| | 169 | for (int i = 0; i < lcLeaf.length(); ++i) { |
|---|
| | 170 | lcLeaf[i] = tolower(lcLeaf[i]); |
|---|
| | 171 | ucLeaf[i] = toupper(ucLeaf[i]); |
|---|
| | 172 | } |
|---|
| | 173 | |
|---|
| | 174 | boost::filesystem::path ucPath = fpath.branch_path() / ucLeaf; |
|---|
| | 175 | boost::filesystem::path lcPath = fpath.branch_path() / lcLeaf; |
|---|
| | 176 | if (boost::filesystem::exists(lcPath)) |
|---|