File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -340,12 +340,12 @@ struct ImStrv
340340{
341341 const char * Begin;
342342 const char * End;
343- ImStrv () { Begin = End = NULL ; }
344- ImStrv (const char * b) { Begin = b; End = b ? b + strlen (b) : NULL ; }
345- ImStrv (const char * b, const char * e){ Begin = b; End = e ? e : b ? b + strlen (b) : NULL ; }
346- inline int length () const { return (int )(End - Begin); }
347- inline bool empty () const { return Begin == End; } // == "" or == NULL
348- inline operator bool () const { return Begin != NULL ; } // return true when valid ("" is valid, NULL construction is not)
343+ IM_NODEBUGSTEP inline ImStrv () { Begin = End = NULL ; }
344+ IM_NODEBUGSTEP inline ImStrv (const char * b) { Begin = b; End = b ? b + strlen (b) : NULL ; }
345+ IM_NODEBUGSTEP inline ImStrv (const char * b, const char * e){ Begin = b; End = e ? e : b ? b + strlen (b) : NULL ; }
346+ IM_NODEBUGSTEP inline int length () const { return (int )(End - Begin); }
347+ IM_NODEBUGSTEP inline bool empty () const { return Begin == End; } // == "" or == NULL
348+ IM_NODEBUGSTEP inline operator bool () const { return Begin != NULL ; } // return true when valid ("" is valid, NULL construction is not)
349349#ifdef IM_STRV_CLASS_EXTRA
350350 IM_STRV_CLASS_EXTRA // Define additional constructor in imconfig.h to convert your string types (e.g. std::string, std::string_view) to ImStrV.
351351#endif
You can’t perform that action at this time.
0 commit comments