Embed:
(wiki syntax)
Show/hide line numbers
str.h
Go to the documentation of this file.
00001 /** 00002 * @file str.h 00003 * @brief String manipulation helper functions 00004 * 00005 * @section License 00006 * 00007 * Copyright (C) 2010-2017 Oryx Embedded SARL. All rights reserved. 00008 * 00009 * This program is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU General Public License 00011 * as published by the Free Software Foundation; either version 2 00012 * of the License, or (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software Foundation, 00021 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00022 * 00023 * @author Oryx Embedded SARL (www.oryx-embedded.com) 00024 * @version 1.7.6 00025 **/ 00026 00027 #ifndef _STR_H 00028 #define _STR_H 00029 00030 //Dependencies 00031 #include "os_port.h" 00032 #include "error.h" 00033 00034 //String manipulation helper functions 00035 char_t *strDuplicate(const char_t *s); 00036 char_t *strTrimWhitespace(char_t *s); 00037 void strRemoveTrailingSpace(char_t *s); 00038 void strReplaceChar(char_t *s, char_t oldChar, char_t newChar); 00039 00040 error_t strSafeCopy(char_t *dest, const char_t *src, size_t destSize); 00041 00042 #endif 00043
Generated on Tue Jul 12 2022 17:10:17 by
