Source Code (Use browser search to find items of interest.)

Class Index

kdelibs'UStringData (./kdelibs/kjs/ustring.h:102)

  class UStringData {
    friend UString;
    friend bool operator==(const UString&, const UString&);
  public:
    UStringData() : dat(0L), len(0), rc(1) { }
    UStringData(UChar *d, unsigned int l) : dat(d), len(l), rc(1) { }
    ~UStringData() { delete dat; }
  private:
    UChar *data() const { return dat; }
    unsigned int size() const { return len; }

    void ref() { rc++; }
    unsigned int deref() { return --rc; }

    UChar *dat;
    unsigned int len;
    unsigned int rc;
    static UStringData null;
  };

  /**
   * @short Unicode string class
   */