Foundation Classes - Enhance TCollection_ExtendedString with std::u16string_view support (#1009)

- Added constructor and assignment operator for std::u16string_view.
- Implemented conversion operator to std::u16string_view.
- Introduced methods to append std::u16string_view.
- Added Copy and assignment operator overloads for char16_t pointers.
- Fixed variable name inconsistencies (myLength vs mylength).
- Added new string manipulation methods: LeftAdjust, RightAdjust, LeftJustify, RightJustify, Center, Capitalize, Prepend, FirstLocationInSet, FirstLocationNotInSet, IntegerValue, IsIntegerValue, RealValue, IsRealValue, IsSameString.
This commit is contained in:
Pasukhin Dmitry
2026-01-18 21:07:30 +00:00
committed by GitHub
parent 13ab6349fd
commit 848bf7f697
4 changed files with 2262 additions and 565 deletions

View File

@@ -319,7 +319,7 @@ void XmlMDataStd_ExtStringArrayDriver::Paste(const occ::handle<TDF_Attribute>& t
}
if (xstr.SearchFromEnd(c) == isym - 1)
isym--; // replace the last separator by '\0'
xstr.SetValue(isym, '\0');
xstr.SetValue(isym, u'\0');
#ifdef _DEBUG
TCollection_AsciiString cstr(xstr, '?'); // deb
#endif