[llvm-commits] [llvm] r135809 - /llvm/trunk/docs/ProgrammersManual.html

Frits van Bommel fvbommel at gmail.com
Sat Jul 23 02:07:00 PDT 2011


On 22 July 2011 23:34, Chris Lattner <sabre at nondot.org> wrote:
> +<li>StringRef's allow you to mutate the pointed-to string bytes, but because it
> +doesn't own the string, it doesn't allow you to insert or remove bytes from
> +the range.  For editing operations like this, it interoperates with the
> +<a href="#dss_twine">Twine</a> class.</li>

StringRef does *not* allow you to mutate the pointed-to-string bytes.
The only "editing" operations it allows are slicing and reassigning,
neither of which changes the bytes of the pointed-to-string.




More information about the llvm-commits mailing list