JX Application Framework
Loading...
Searching...
No Matches
Public Member Functions | List of all members
JUtf8ByteBuffer Class Reference

#include <JUtf8ByteBuffer.h>

Inheritance diagram for JUtf8ByteBuffer:
[legend]

Public Member Functions

 JUtf8ByteBuffer (const JSize blockSize)
 
 ~JUtf8ByteBuffer () override
 
void Append (const std::span< const JUtf8Byte > &data)
 
JString ExtractCharacters ()
 
- Public Member Functions inherited from JArray< JUtf8Byte >
 JArray (const JSize blockSize=10)
 
 JArray (const JArray< JUtf8Byte > &source)
 
 JArray (JArray< JUtf8Byte > &&dyingSource) noexcept
 
 ~JArray () override
 
JArray< JUtf8Byte > & operator= (const JArray< JUtf8Byte > &source)
 
 operator const JUtf8Byte * () const
 
const JUtf8ByteGetCArray () const
 
JUtf8ByteAllocateCArray () const
 
JUtf8Byte GetItem (const JIndex index) const
 
void SetItem (const JIndex index, const JUtf8Byte &data)
 
JUtf8Byte GetItemFromEnd (const JIndex index) const
 
void SetItemFromEnd (const JIndex index, const JUtf8Byte &data)
 
JUtf8Byte GetFirstItem () const override
 
JUtf8Byte GetLastItem () const override
 
void InsertItemAtIndex (const JIndex index, const JUtf8Byte &data)
 
void PrependItem (const JUtf8Byte &data) override
 
void AppendItem (const JUtf8Byte &data) override
 
void RemoveItem (const JIndex index)
 
void RemoveNextItems (const JIndex firstIndex, const JSize count)
 
void RemovePrevItems (const JIndex lastIndex, const JSize count)
 
void RemoveItems (const JIndexRange &range)
 
void RemoveItems (const JListT::ItemsRemoved &info)
 
void RemoveAll () override
 
void MoveItemToIndex (const JIndex currentIndex, const JIndex newIndex)
 
void MoveItemToIndex (const JListT::ItemMoved &info)
 
void SwapItems (const JIndex index1, const JIndex index2)
 
void SwapItems (const JListT::ItemsSwapped &info)
 
JListIterator< JUtf8Byte > * NewIterator (const JListT::Position start=JListT::kStartAtBeginning, const JIndex index=0) override
 
JListIterator< JUtf8Byte > * NewIterator (const JListT::Position start=JListT::kStartAtBeginning, const JIndex index=0) const override
 
JSize GetBlockSize () const
 
void SetBlockSize (const JSize newBlockSize)
 
void Sort ()
 
bool InsertSorted (const JUtf8Byte &data, const bool insertIfDuplicate=true, JIndex *index=nullptr)
 
JIndex GetInsertionSortIndex (const JUtf8Byte &data, bool *isDuplicate=nullptr) const
 
bool SearchSorted (const JUtf8Byte &target, const JListT::SearchReturn which, JIndex *index) const
 
JIndex SearchSortedOTI (const JUtf8Byte &target, const JListT::SearchReturn which, bool *found) const
 
void QuickSort (int(*compare)(const void *, const void *))
 
const JUtf8Bytebegin () const
 
const JUtf8Byteend () const
 
- Public Member Functions inherited from JList< T >
 JList ()
 
 JList (const JList< T > &source)
 
 ~JList () override
 
void SetCompareFunction (const std::function< std::weak_ordering(const T &, const T &)> compareFn)
 
void CopyCompareFunction (const JList< T > &source)
 
void ClearCompareFunction ()
 
JListT::SortOrder GetSortOrder () const
 
void SetSortOrder (const JListT::SortOrder order)
 
bool IsSorted () const
 
- Public Member Functions inherited from JCollection
 JCollection ()
 
 JCollection (const JCollection &source)
 
 ~JCollection () override
 
JCollectionoperator= (const JCollection &source)
 
JSize GetItemCount () const
 
bool IsEmpty () const
 
bool IndexValid (const JIndex index) const
 
JIndex GetIndexFromEnd (const JIndex index) const
 
JString ToString () const override
 
- Public Member Functions inherited from JBroadcaster
 JBroadcaster ()
 
virtual ~JBroadcaster ()
 
JBroadcasteroperator= (const JBroadcaster &source)
 
bool HasSenders () const
 
JSize GetSenderCount () const
 
bool HasRecipients () const
 
JSize GetRecipientCount () const
 
template<class T >
void ListenTo (const JBroadcaster *sender, const std::function< void(const T &)> &f)
 

Additional Inherited Members

- Protected Member Functions inherited from JArray< JUtf8Byte >
const JUtf8ByteProtectedGetItem (const JIndex index) const
 
- Protected Member Functions inherited from JList< T >
std::function< std::weak_ordering(const T &, const T &)> * GetCompareFunction () const
 
void ListAssigned (const JList< T > &source)
 
void NotifyIterators (const JBroadcaster::Message &message)
 
- Protected Member Functions inherited from JCollection
void ItemAdded ()
 
void ItemRemoved ()
 
void SetItemCount (const JSize newItemCount)
 
- Protected Member Functions inherited from JBroadcaster
 JBroadcaster (const JBroadcaster &source)
 
void ListenTo (const JBroadcaster *sender)
 
void StopListening (const JBroadcaster *sender)
 
void ClearWhenGoingAway (const JBroadcaster *sender, void *pointerToMember)
 
void StopListening (const JBroadcaster *sender, const std::type_info &messageType)
 
template<class T >
void Send (JBroadcaster *recipient, const T &message)
 
template<class T >
void Broadcast (const T &message)
 
virtual void Receive (JBroadcaster *sender, const Message &message)
 
void SendWithFeedback (JBroadcaster *recipient, Message *message)
 
void BroadcastWithFeedback (Message *message)
 
virtual void ReceiveWithFeedback (JBroadcaster *sender, Message *message)
 
virtual void ReceiveGoingAway (JBroadcaster *sender)
 

Detailed Description

Manages an incomplete array of UTF-8 bytes.

Constructor & Destructor Documentation

◆ JUtf8ByteBuffer()

JUtf8ByteBuffer::JUtf8ByteBuffer ( const JSize  blockSize)

◆ ~JUtf8ByteBuffer()

JUtf8ByteBuffer::~JUtf8ByteBuffer ( )
override

Member Function Documentation

◆ Append()

void JUtf8ByteBuffer::Append ( const std::span< const JUtf8Byte > &  data)

◆ ExtractCharacters()

JString JUtf8ByteBuffer::ExtractCharacters ( )

The documentation for this class was generated from the following files: