summaryrefslogtreecommitdiffstats
path: root/doc/html/regexptester-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-06-06 13:44:12 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-06-06 13:52:29 +0900
commite6077c30d14e9d662e8843c554db86c0d366d0b6 (patch)
tree672319afee32f0316bad258c0e9a1e0dd737bd61 /doc/html/regexptester-example.html
parent8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde (diff)
downloadtqt3-e6077c30d14e9d662e8843c554db86c0d366d0b6.tar.gz
tqt3-e6077c30d14e9d662e8843c554db86c0d366d0b6.zip
Rename str nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/regexptester-example.html')
-rw-r--r--doc/html/regexptester-example.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/html/regexptester-example.html b/doc/html/regexptester-example.html
index 33fc85327..5d1b15aab 100644
--- a/doc/html/regexptester-example.html
+++ b/doc/html/regexptester-example.html
@@ -172,9 +172,9 @@ private:
void <a name="f557"></a>RegexpTester::execute()
{
-<a name="x2478"></a> <a href="ntqstring.html">TQString</a> regex = regexComboBox-&gt;<a href="ntqcombobox.html#currentText">currentText</a>();
- <a href="ntqstring.html">TQString</a> text = textComboBox-&gt;<a href="ntqcombobox.html#currentText">currentText</a>();
- if (!regex.<a href="ntqstring.html#isEmpty">isEmpty</a>() &amp;&amp; !text.<a href="ntqstring.html#isEmpty">isEmpty</a>()) {
+<a name="x2478"></a> <a href="tqstring.html">TQString</a> regex = regexComboBox-&gt;<a href="ntqcombobox.html#currentText">currentText</a>();
+ <a href="tqstring.html">TQString</a> text = textComboBox-&gt;<a href="ntqcombobox.html#currentText">currentText</a>();
+ if (!regex.<a href="tqstring.html#isEmpty">isEmpty</a>() &amp;&amp; !text.<a href="tqstring.html#isEmpty">isEmpty</a>()) {
<a href="ntqregexp.html">TQRegExp</a> re(regex);
<a name="x2491"></a><a name="x2474"></a> re.<a href="ntqregexp.html#setCaseSensitive">setCaseSensitive</a>(caseSensitiveCheckBox-&gt;<a href="ntqcheckbox.html#isChecked">isChecked</a>());
<a name="x2492"></a> re.<a href="ntqregexp.html#setMinimal">setMinimal</a>(minimalCheckBox-&gt;<a href="ntqcheckbox.html#isChecked">isChecked</a>());
@@ -192,8 +192,8 @@ void <a name="f557"></a>RegexpTester::execute()
<a name="x2502"></a> resultTable-&gt;<a href="ntqtable.html#setNumRows">setNumRows</a>(0);
resultTable-&gt;<a href="ntqtable.html#setNumRows">setNumRows</a>(captures + OFFSET);
<a name="x2504"></a> resultTable-&gt;<a href="ntqtable.html#setText">setText</a>(row, 0, tr("Regex"));
- <a href="ntqstring.html">TQString</a> escaped = regex;
-<a name="x2497"></a> escaped = escaped.<a href="ntqstring.html#replace">replace</a>("\\", "\\\\");
+ <a href="tqstring.html">TQString</a> escaped = regex;
+<a name="x2497"></a> escaped = escaped.<a href="tqstring.html#replace">replace</a>("\\", "\\\\");
resultTable-&gt;<a href="ntqtable.html#setText">setText</a>(row, 1, escaped);
<a name="x2500"></a> resultTable-&gt;<a href="ntqtable.html#item">item</a>(row, 1)-&gt;setSpan(1, 2);
if (offset != -1) {
@@ -219,7 +219,7 @@ void <a name="f557"></a>RegexpTester::execute()
resultTable-&gt;<a href="ntqtable.html#setText">setText</a>(row + i, 0, tr("Capture #%1").arg(i));
resultTable-&gt;<a href="ntqtable.html#setText">setText</a>(row + i, 1, re.<a href="ntqregexp.html#cap">cap</a>(i));
resultTable-&gt;<a href="ntqtable.html#setText">setText</a>(row + i, 2,
-<a name="x2496"></a> TQString::<a href="ntqstring.html#number">number</a>(re.<a href="ntqregexp.html#cap">cap</a>(i).length()));
+<a name="x2496"></a> TQString::<a href="tqstring.html#number">number</a>(re.<a href="ntqregexp.html#cap">cap</a>(i).length()));
}
}
else
@@ -243,9 +243,9 @@ void <a name="f557"></a>RegexpTester::execute()
void <a name="f558"></a>RegexpTester::copy()
{
- <a href="ntqstring.html">TQString</a> escaped = regexComboBox-&gt;<a href="ntqcombobox.html#currentText">currentText</a>();
- if (!escaped.<a href="ntqstring.html#isEmpty">isEmpty</a>()) {
- escaped = escaped.<a href="ntqstring.html#replace">replace</a>("\\", "\\\\");
+ <a href="tqstring.html">TQString</a> escaped = regexComboBox-&gt;<a href="ntqcombobox.html#currentText">currentText</a>();
+ if (!escaped.<a href="tqstring.html#isEmpty">isEmpty</a>()) {
+ escaped = escaped.<a href="tqstring.html#replace">replace</a>("\\", "\\\\");
<a name="x2468"></a> <a href="ntqclipboard.html">TQClipboard</a> *cb = TQApplication::<a href="ntqapplication.html#clipboard">clipboard</a>();
<a name="x2476"></a> cb-&gt;<a href="ntqclipboard.html#setText">setText</a>(escaped, TQClipboard::Clipboard);
<a name="x2477"></a> if (cb-&gt;<a href="ntqclipboard.html#supportsSelection">supportsSelection</a>())