Lines Matching refs:Buf
1429 // - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
1432 char* Buf; // Text buffer // Read-write // [Resize] Can replace pointer / [Completion,History,Always] Only write to pointed data, don't replace the actual pointer!
1435 bool BufDirty; // Set if you modify Buf/BufTextLen! // Write // [Completion,History,Always]
1582 ImVector<char> Buf;
1586 inline char operator[](int i) { IM_ASSERT(Buf.Data != NULL); return Buf.Data[i]; }
1587 const char* begin() const { return Buf.Data ? &Buf.front() : EmptyString; }
1588 const char* end() const { return Buf.Data ? &Buf.back() : EmptyString; } // Buf is zero-terminated, so end() will point on the zero-terminator
1589 int size() const { return Buf.Size ? Buf.Size - 1 : 0; }
1590 bool empty() { return Buf.Size <= 1; }
1591 void clear() { Buf.clear(); }
1592 void reserve(int capacity) { Buf.reserve(capacity); }
1593 const char* c_str() const { return Buf.Data ? Buf.Data : EmptyString; }