Skip to content

File wsh_shell_str.h

File List > src > wsh_shell_str.h

Go to the documentation of this file

#ifndef __WSH_SHELL_STR_H
#define __WSH_SHELL_STR_H

#include "wsh_shell_cfg.h"
#include "wsh_shell_io.h"
#include "wsh_shell_option.h"
#include "wsh_shell_types.h"

#ifdef __cplusplus
extern "C" {
#endif

#define WSH_SHELL_PRESS_ENTER_TO_LOG_IN_STR "Press <Enter> to log in..."

WshShell_Bool_t WshShellStr_IsPrintableAscii(WshShell_Char_t ch);

WshShell_Char_t* WshShellStr_TrimString(WshShell_Char_t* pString, WshShell_Size_t len);

void WshShellStr_ParseToArgcArgv(WshShell_Char_t* pStr, WshShell_Size_t* pArgNum,
                                 const WshShell_Char_t* pArgBuff[], WshShell_Size_t maxArgNum);

void WshShellStr_IncrInterCnt(WshShell_Size_t* pInterCnt, WshShell_Size_t buffSize);

void WshShellStr_DecrInterCnt(WshShell_Size_t* pInterCnt);

void WshShellStr_AccessBitsToStr(WshShell_Size_t access, WshShell_Char_t* pOutStr);

void WshShellStr_GroupBitsToStr(WshShell_Size_t group, WshShell_Size_t groupMaxNum,
                                WshShell_Char_t* pOutStr);

#ifdef __cplusplus
}
#endif

#endif /* __WSH_SHELL_STR_H */