version 1.8.0
PIString: version functions
This commit is contained in:
@@ -211,6 +211,16 @@ piCout << s.find("3"); // 9
|
||||
piCout << s.find("3", 4); // 9
|
||||
piCout << s.find("3", 10); // -1
|
||||
//! [PIString::findLast]
|
||||
//! [PIString::findAny]
|
||||
piCout << PIString("1.str").findAny(".,:"); // 1
|
||||
piCout << PIString("1,str").findAny(".,:"); // 1
|
||||
piCout << PIString("1:str").findAny(".,:"); // 1
|
||||
//! [PIString::findAny]
|
||||
//! [PIString::findAnyLast]
|
||||
piCout << PIString("str.0").findAny(".,:"); // 3
|
||||
piCout << PIString("str,0").findAny(".,:"); // 3
|
||||
piCout << PIString("str:0").findAny(".,:"); // 3
|
||||
//! [PIString::findAnyLast]
|
||||
//! [PIString::findWord]
|
||||
PIString s("this is <PIP>");
|
||||
piCout << s.find("this"); // 0
|
||||
|
||||
Reference in New Issue
Block a user