User forums > Using Code::Blocks
Length of selected text
Krice:
--- Quote from: zdena on May 11, 2019, 06:37:54 pm ---It could help me with counting characters in a (long) string if it could fit in a char array.
--- End quote ---
You don't want to do it that way. First get a piece of text and then in the program code determine the size of that string and what to do with it later. If you are using C++ the obvious thing to use is std::string.
zdena:
@krice: Firstly I decide the length of char array. It depends on display size (16, 20, 40,... characters) for example. Then I create text messages and I would like to know that they are not longer than the array size.
Yes, Arduino is C++ but std::string is usually not used there.
BlueHazzard:
i have posted a patch here: https://sourceforge.net/p/codeblocks/tickets/851/
ZsoltKant:
A long time has not been posted here. I also checked the latest nightly build, but the character counting functionality has not been implemented yet. The ticket status is open also and last updated in 2019.
Will this feature be implemented in the next release, or in a future?
Navigation
[0] Message Index
[*] Previous page
Go to full version