How I can count characters in QByteArray, for example I have QByteArray and I want to know how many "*" in this array.
1
votes
2 Answers
2
votes
From QByteArray documentation:
int QByteArray::count ( const char * str ) const
This is an overloaded function.
Returns the number of (potentially overlapping) occurrences of string str in the byte array.