It was not immediately clear to me whether or not non-null-terminated StringRef's are supported in ConstString and/or the counterpart mechanism. From this test it seems to be fine. Maybe useful to keep?
Details
Details
Diff Detail
Diff Detail
- Repository
- rLLDB LLDB
Event Timeline
Comment Actions
In general, I would assume that a function taking a StringRef can take *any* StringRef object (including the non-terminated ones), unless the limitations are very clearly documented.
That said, having a test that verifies this is a legitimate thing, and since you've already written one, we might as well check it in.