Lines Matching full:twine
186 Passing strings (the ``StringRef`` and ``Twine`` classes)
198 ``StringRef`` or a ``const Twine&`` for passing strings efficiently.
237 The ``Twine`` class
240 The ``Twine`` (`doxygen <http://llvm.org/doxygen/classllvm_1_1Twine.html>`__)
249 The ``Twine`` class is effectively a lightweight `rope
253 ``std::string``, or a ``StringRef``). The twine delays the actual concatenation
257 concatenation. See ``llvm/ADT/Twine.h`` (`doxygen
261 As with a ``StringRef``, ``Twine`` objects point to external memory and should
985 operations like this, it interoperates with the :ref:`Twine <dss_twine>`
994 llvm/ADT/Twine.h
997 The Twine class is used as an intermediary datatype for APIs that want to take a
998 string that can be constructed inline with a series of concatenations. Twine
999 works by forming recursive instances of the Twine datatype (a simple value
1001 which is then linearized when the Twine is consumed. Twine is only safe to use
1006 void foo(const Twine &T);
1010 foo(X + "." + Twine(i));
1015 Because Twine is constructed with temporary objects on the stack, and because
1022 void foo(const Twine &T);
1026 const Twine &Tmp = X + "." + Twine(i);
1029 ... because the temporaries are destroyed before the call. That said, Twine's
1067 SmallVector or Twine as a scratch buffer, but then use std::string to persist