-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Committed-by: xiaolei.zl from Dev container
- Loading branch information
1 parent
94048ef
commit 8a75b74
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include "flex/utils/property/column.h" | ||
|
||
#include <string> | ||
#include <string_view> | ||
|
||
int main(int argc, char** argv) { | ||
std::string str = "abcdefO(1/ε^2)"; | ||
std::cout << "str: " << str << ", size: " << str.size() << std::endl; | ||
std::string_view sv = gs::truncate_utf8(str, 12); | ||
std::cout << sv << ", size:" << sv.size() << std::endl; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters