src/corelib/tools/qstring.cpp
branchRCL_3
changeset 8 3f74d0d4af4c
parent 5 d3bac044e0f0
equal deleted inserted replaced
6:dee5afe5301f 8:3f74d0d4af4c
  3183                 ret += section.string.mid(section.length);
  3183                 ret += section.string.mid(section.length);
  3184         }
  3184         }
  3185         if (!empty || !(flags & SectionSkipEmpty))
  3185         if (!empty || !(flags & SectionSkipEmpty))
  3186             x++;
  3186             x++;
  3187     }
  3187     }
  3188     if((flags & SectionIncludeLeadingSep)) {
  3188     if((flags & SectionIncludeLeadingSep) && first_i < sections.size()) {
  3189         const qt_section_chunk &section = sections.at(first_i);
  3189         const qt_section_chunk &section = sections.at(first_i);
  3190         ret.prepend(section.string.left(section.length));
  3190         ret.prepend(section.string.left(section.length));
  3191     }
  3191     }
  3192     if((flags & SectionIncludeTrailingSep) && last_i+1 <= sections.size()-1) {
  3192     if((flags & SectionIncludeTrailingSep) && last_i+1 <= sections.size()-1) {
  3193         const qt_section_chunk &section = sections.at(last_i+1);
  3193         const qt_section_chunk &section = sections.at(last_i+1);