StringData should have a const_iterator type and begin() and end() methods.

XMLWordPrintableJSON

    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This would make it compatible with various standard algorithms and programming practices already common in the codebase.

      Proposed implementation:

      class StringData {
      public:
      typedef const char* const_iterator;
      ...
      const_iterator begin()

      { return rawData(); }

      const_iterator end()

      { return rawData() + size(); }

      ...
      };

            Assignee:
            Andrew Morrow (Inactive)
            Reporter:
            Andy Schwerin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: