src/corelib/tools/qstring.cpp
changeset 19 fcece45ef507
parent 18 2f34d5167611
child 30 5dc02b23752f
equal deleted inserted replaced
18:2f34d5167611 19:fcece45ef507
  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);