About initial value of token counting
julien2412
serval2412 at yahoo.fr
Mon Apr 13 07:45:11 PDT 2015
Hello,
Sorry for this dumb question but why the token count is initialized at 1
and not at 0 in these:
1) tmpl_getTokenCount
http://opengrok.libreoffice.org/xref/core/comphelper/source/misc/string.cxx#117
()
2) ScStringUtil::GetQuotedTokenCount
http://opengrok.libreoffice.org/xref/core/sc/source/core/tool/stringutil.cxx#353
If the pattern isn't found, the return shouldn't be 0 instead of 1?
(I suppose it works but don't understand the logic)
Julien
--
View this message in context: http://nabble.documentfoundation.org/About-initial-value-of-token-counting-tp4146131.html
Sent from the Dev mailing list archive at Nabble.com.
More information about the LibreOffice
mailing list