Mozilla.com

Table of contents
  1. 1. Summary
  2. 2. Example Code
Table of contents
  1. 1. Summary
  2. 2. Example Code

« XPCOM API Reference

Summary

The get function returns a const pointer to the string's null-terminated, internal buffer.

 const char_type* get() const;

Example Code

  void GetBar(nsAString &result);

  void Func()
  {
    nsEmbedString str;
    GetBar(str);

    const PRUnichar *data = str.get();
    ...
  }

Page last modified 21:51, 23 Apr 2006 by Pmash

Files (0)