String manipulation functions. More...
Go to the source code of this file.
Macros | |
#define | WSTR_IS_HEX_FORMAT(c) |
#define | WSTR_IS_BIN_FORMAT(c) (((char)(c)[0] == '0') && ((char)(c)[1] == 'b')) |
Functions | |
void | WstrnCpy (char *pBuf, const char *pData, uint8_t n) |
Copies a string up to a given length. More... | |
void | WStrReverseCpy (uint8_t *pBuf1, const uint8_t *pBuf2, uint16_t len) |
Byte by byte reverse and copy a buffer. More... | |
void | WStrReverse (uint8_t *pBuf, uint8_t len) |
Byte by byte reverse a buffer. More... | |
void | WStrFormatHex (char *pBuf, uint32_t val, uint8_t len) |
Format a hex value. More... | |
void | WStrHexToArray (const char *pStr, uint8_t *pBuf, uint16_t len) |
Convert a formatted string to int array, zero out space after the string length. More... | |
String manipulation functions.
Copyright (c) 2014-2018 Arm Ltd. All Rights Reserved.
Copyright (c) 2019-2020 Packetcraft, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file wstr.h.