O'Reilly logo

Getting Started With JUCE by Martin Robinson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Specifying and manipulating text strings

In JUCE, text is generally manipulated using the String class. In many ways, this class may be seen as an alternative to the C++ Standard Library std::string class. We have already used the String class for the basic operations in earlier chapters. For example, in Chapter 2, Building User Interfaces, strings were used to set the text appearing on a TextButton object and used to store a dynamically changing string to display in response to mouse activity. Even though these examples were quite simple, they harnessed the power of the String class to make setting and manipulating the strings straightforward for the user.

The first way this is achieved is through storing strings using reference counted objects ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required