# CDPString

## Functions

| `CDPString`
| `CDPString`
| `~CDPString`
CDPString & | `operator=`
const cdp_char_t * | `utf8`
cdp_size_t | `byteCount`
CDPString | `fromUtf8`
CDPString | `fromChar`
const CDPString & | `emptyString`

## Detailed Description

class `CDPString`

  A simple class for handling strings.

  CDP uses UTF-8 based strings. This class stores strings in UTF-8 format, and provides creation from ASCII char and UTF-8 strings.

  Public Functions

  inline `CDPString`()

    Constructor.

  inline `CDPString`(const CDPString &other)

    Copy constructor.

  inline `~CDPString`()

    Destructor.

  inline CDPString &`operator=`(const CDPString &rhs)

    Assignment operator.

  inline const cdp_char_t *`utf8`() const

    Returns a const ptr to the UTF-8 formatted string.

  inline cdp_size_t `byteCount`() const

    Returns the number of bytes (length) of the string.

  Public Static Functions

  static inline CDPString `fromUtf8`(const cdp_char_t *utf8Ptr)

    Returns a string created from a UTF-8 array.

  static inline CDPString `fromChar`(const cdp_char_t *charPtr)

    Returns a string created from a ASCII (char) string.

    Any ASCII value above 127 will be encoded to UTF-8

  static inline const CDPString &`emptyString`()

    Returns blank string.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Envision for Desktop or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...