Dummy fbstring core that uses an actual std::string. This doesn't make any sense ‐ it's just for testing purposes.

Synopsis

Declared in <folly/FBString.h>

template<class Char>
class dummy_fbstring_core;

Member Functions

Name

Description

dummy_fbstring_core [constructor]

Constructors

capacity

Returns the capacity of the string.

data

Returns a pointer to the string's buffer.

expandNoinit

Expands the string by delta characters without initializing them.

isCounted

Returns whether the string uses reference‐counted storage.

isShared

Returns whether the underlying data is shared.

mutableData

Returns a writable pointer to the string's buffer.

push_back

Appends a single character to the string.

reserve

Ensures capacity for at least minCapacity characters.

shrink

Shrinks the string by delta characters.

size

Returns the number of characters in the string.

swap

Swaps the contents with another dummy core.

useCount

Returns the reference count of the underlying storage.

Created with MrDocs