mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Оптимизируем работу со строками в файлах SerialPrint и StringUtils
This commit is contained in:
@@ -3,4 +3,4 @@
|
||||
#include "utils/TimeUtils.h"
|
||||
#include "classes/IoTItem.h"
|
||||
|
||||
void SerialPrint(String errorLevel, String module, String msg, String itemId = "");
|
||||
void SerialPrint(const String& errorLevel, const String& module, const String& msg, const String& itemId = "");
|
||||
@@ -8,29 +8,29 @@ void hex2string(byte array[], unsigned int len, char buffer[]);
|
||||
|
||||
int string2hex(const char* str, unsigned char* bytes);
|
||||
|
||||
uint8_t hexStringToUint8(String hex);
|
||||
uint8_t hexStringToUint8(const String& hex);
|
||||
|
||||
uint16_t hexStringToUint16(String hex);
|
||||
uint16_t hexStringToUint16(const String& hex);
|
||||
|
||||
String selectToMarkerLast(String str, String found);
|
||||
String selectToMarkerLast(String str, const String& found);
|
||||
|
||||
String selectToMarker(String str, String found);
|
||||
String selectToMarker(String str, const String& found);
|
||||
|
||||
String extractInner(String str);
|
||||
|
||||
String deleteAfterDelimiter(String str, String found);
|
||||
String deleteAfterDelimiter(String str, const String& found);
|
||||
|
||||
String deleteBeforeDelimiter(String str, String found);
|
||||
String deleteBeforeDelimiter(String str, const String& found);
|
||||
|
||||
String deleteBeforeDelimiterTo(String str, String found);
|
||||
String deleteBeforeDelimiterTo(String str, const String& found);
|
||||
|
||||
String deleteToMarkerLast(String str, String found);
|
||||
String deleteToMarkerLast(String str, const String& found);
|
||||
|
||||
String selectFromMarkerToMarker(String str, String found, int number);
|
||||
String selectFromMarkerToMarker(String str, const String& found, int number);
|
||||
|
||||
size_t itemsCount2(String str, const String& separator);
|
||||
|
||||
char* stringToChar(String& str);
|
||||
char* stringToChar(const String& str);
|
||||
|
||||
//size_t itemsCount(String& str, const char* delim);
|
||||
|
||||
@@ -42,4 +42,4 @@ String prettyBytes(size_t size);
|
||||
|
||||
String uint64ToString(uint64_t input, uint8_t base = 10);
|
||||
|
||||
String cleanString(String str);
|
||||
void cleanString(String& str);
|
||||
|
||||
Reference in New Issue
Block a user