DvonHolten commented on PR #195:
URL: https://github.com/apache/pdfbox/pull/195#issuecomment-2120894730

   but what is the purpose of this? if you just want/need to know, if some 
string contains a space ' ', the fastest and cheapest way is to use indexOf( ' 
' ) >= 0.
   if you need to check for two (or very few) possible characters, use some 
index.Of(), ordered by expected frequency.
   Patterns cant be more efficient than that - for these simple cases. 
   If you need to match for something like 'whitespace', use a compiled pattern.
   Dont try to build your own pattern matcher!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to