Top "String-length" questions

String length most commonly refers to the number of characters contained within a string.

Index and length must refer to a location within the string error in substring

I have a string like this: 2899 8761 014 00:00:00 06/03/13 09:35 G918884770707. I have to take the substring G918884770707 from this given string. I know …

c# .net string substring string-length
Which is faster C++ String length() or size()?

length() returns the number of characters in the string and size() returns a size_t which is also the same …

c++ string size time-complexity string-length
Select string length in mongodb

How do you query mongodb to find the length of a particular string/text field? And how would you find …

mongodb string-length
Convert CGSize to CGFloat and use that to size a RoundRectButton

I'm trying to find the physical pixel size of a string of text. I then want to use this size …

iphone objective-c strlen string-length sizewithfont
C++ get the length of LPCWSTR and LPVOID

The winapi function WinHttpSendRequest() wants the size of the second parameter in the third one and the size of the …

c++ string-length lpcwstr
How to remove a row from pandas dataframe based on the length of the column values?

In the following pandas.DataFframe: df = alfa beta ceta a,b,c c,d,e g,e,h a,b …

python pandas dataframe string-length
python overloading operators

I need to implement a DNA class which has attribute a sequence which consists of a string of characters from …

python operator-overloading string-length
Is using strlen() in the loop condition slower than just checking for the null character?

I have read that use of strlen is more expensive than such testing like this: We have a string x 100 …

c strlen string-length
The length of a list without the "length" function in Haskell

I want to see how long a list is, but without using the function length. I wrote this program and …

haskell functional-programming string-length imperative-programming
Python string length recursion

I'm blanking out trying to write a simple function to count the string length recursively. I can do sums, fibonacci, …

python string recursion string-length