irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

stringOpr.cpp File Reference
#include "stringOpr.h"
#include "rodsErrorTable.h"
#include "rodsLog.h"
#include <string>
#include "boost/regex.hpp"
#include "irods_stacktrace.hpp"
Include dependency graph for stringOpr.cpp:

Go to the source code of this file.

Functions

char * rmemmove (void *dest, const void *src, int strLen, int maxLen)
 
char * rmemcpy (void *dest, const void *src, int strLen, int maxLen)
 
char * rstrcpy (char *dest, const char *src, int maxLen)
 
char * rstrcat (char *dest, const char *src, int maxLen)
 
char * rstrncat (char *dest, const char *src, int srcLen, int maxLen)
 
int rSplitStr (const char *inStr, char *outStr1, size_t maxOutLen1, char *outStr2, size_t maxOutLen2, char key)
 
int copyStrFromBuf (char **buf, char *outStr, int maxOutLen)
 
int isAllDigit (const char *myStr)
 
int splitPathByKey (const char *srcPath, char *dir, size_t maxDirLen, char *file, size_t maxFileLen, char key)
 
int trimWS (char *s)
 
int trimQuotes (char *s)
 
int checkStringForSystem (const char *inString)
 
int checkStringForEmailAddress (const char *inString)
 

Function Documentation

◆ checkStringForEmailAddress()

int checkStringForEmailAddress ( const char *  inString)

Definition at line 313 of file stringOpr.cpp.

References NULL, and USER_INPUT_STRING_ERR.

Referenced by msiSendMail().

◆ checkStringForSystem()

int checkStringForSystem ( const char *  inString)

Definition at line 296 of file stringOpr.cpp.

References NULL, and USER_INPUT_STRING_ERR.

Referenced by msiSendMail(), and smsi_msiCheckStringForSystem().

◆ copyStrFromBuf()

int copyStrFromBuf ( char **  buf,
char *  outStr,
int  maxOutLen 
)

Definition at line 157 of file stringOpr.cpp.

References buf, and USER_STRLEN_TOOLONG.

◆ isAllDigit()

int isAllDigit ( const char *  myStr)

Definition at line 209 of file stringOpr.cpp.

Referenced by resolveIntInItem().

◆ rmemcpy()

char* rmemcpy ( void *  dest,
const void *  src,
int  strLen,
int  maxLen 
)

Definition at line 33 of file stringOpr.cpp.

References run_tests::dest, and NULL.

◆ rmemmove()

char* rmemmove ( void *  dest,
const void *  src,
int  strLen,
int  maxLen 
)

Definition at line 15 of file stringOpr.cpp.

References run_tests::dest, and NULL.

◆ rSplitStr()

int rSplitStr ( const char *  inStr,
char *  outStr1,
size_t  maxOutLen1,
char *  outStr2,
size_t  maxOutLen2,
char  key 
)

Definition at line 129 of file stringOpr.cpp.

References NULL, rstrcpy(), and USER_STRLEN_TOOLONG.

Referenced by initRuleStruct(), parse_irbSet(), readDVarStructFromFile(), readFuncMapStructFromFile(), and readMsrvcStructFromFile().

Here is the call graph for this function:

◆ rstrcat()

◆ rstrcpy()

char* rstrcpy ( char *  dest,
const char *  src,
int  maxLen 
)

Definition at line 51 of file stringOpr.cpp.

References run_tests::dest, LOG_DEBUG, LOG_ERROR, NULL, rodsLog(), and irods.pypyodbc::status.

Referenced by _call_file_modified_for_modification(), _dataObjChksum(), _l3FileStage(), _l3Open(), _rcConnect(), _rsBulkDataObjReg(), _rsChkNVPathPerm(), _rsCollRsync(), _rsDataObjChksum(), _rsDataObjCreateWithResc(), _rsDataObjGet(), _rsDataObjPut(), _rsDataObjRename(), _rsFileCreate(), _rsFileRmdir(), _rsFileSyncToArch(), _rsGeneralAdmin(), _rsModColl(), _rsModDataObjMeta(), _rsPhyBundleColl(), _rsPhyPathReg(), _rsPhyRmColl(), _rsProcStat(), _rsProcStatAll(), _rsQuerySpecColl(), _rsRcvXmsg(), _rsRegColl(), _rsRmColl(), _rsRmCollRecur(), _rsStructFileBundle(), _rsSyncMountedColl(), _rsUnbunAndRegPhyBunfile(), _unbunAndStageBunfileObj(), addBetweenClauseToWhere(), addInClauseToWhereForIn(), addProcToProcStatOut(), addRenamedPhyFile(), addSrcInPath(), addStrArray(), allocAndSetL1descForZoneOpr(), build_irods_path_structure(), bulkProcAndRegSubfile(), bulkPutDirUtil(), bulkPutFileUtil(), bundleAndRegSubFiles(), bunUtil(), catDataObj(), checkCondition(), checkDateFormat(), chkAndHandleOrphanFile(), chkCollForBundleOpr(), chkCollForExtAndReg(), chkOrphanFile(), chksumDataObjUtil(), chl_gen_query_access_control_setup_impl(), chl_gen_query_ticket_setup_impl(), cmlArraysToStrWithBind(), cmlGetMultiRowStringValuesFromSql(), cmlGetOneRowFromSql(), cmlGetOneRowFromSqlBV(), cmlGetOneRowFromSqlV3(), collStat(), irods::reg_repl::compute_checksum_for_resc(), convertDateFormat(), copyRuleExecInfo(), cpFileUtil(), createBunDirForBulkPut(), createEmptyRepl(), createRodsEnvDefaults(), createSrvPortal(), dataObjOpenForRepl(), dataObjStat(), dataObjUnlinkS(), dataOpen(), db_check_auth_op(), db_del_user_re_op(), db_mod_group_op(), db_mod_user_op(), db_reg_coll_by_admin_op(), db_update_pam_password_op(), delayExec(), dirPathReg(), filePathReg(), filePathRegRepl(), filePathTypeInResc(), fillAttriArrayOfBulkOprInp(), fillBulkDataObjRegInp(), fillL1desc(), fillRescQuotaStruct(), genCollResInColl(), genDataResInColl(), generalDelete(), generalInsert(), generateSQL(), irods::reg_repl::get_file_size_from_filesystem(), get_resc_hier_from_leaf_id(), getCollUtil(), getDataObjInfo(), getDataObjInfoIncSpecColl(), getDataObjLockPath(), getDataObjUtil(), getFilePathName(), getLastPathElement(), getListOfResc(), getNextDataObjMetaInfo(), getRodsEnvFromEnv(), getRodsEnvFromFile(), getRodsObjType(), getRule(), getRuleBasePath(), getSpecCollTypeStr(), getUtil(), getVarNameFromVarMap(), getZoneType(), handleCompoundCondition(), hasSymlinkInPath(), icatGetTicketGroupId(), icatGetTicketUserId(), iCommandProgStat(), initCmdArg(), initCondForGet(), initCondForPut(), initDataObjInfoForRepl(), initDataObjInfoWithInp(), initDataObjInpFromBulkOpr(), initFileRestart(), initReiWithCollInp(), initRsComm(), initRsCommWithStartupPack(), initZone(), insertRulesIntoDBNew(), insertWhere(), irods_file_open(), irsPhyPathReg(), isCollAllKinds(), isCollEmpty(), isLocalHost(), l3Close(), l3Create(), l3CreateByObjInfo(), l3FileGetSingleBuf(), l3FilePutSingleBuf(), l3FileSync(), l3Mkdir(), l3Open(), l3OpenByHost(), l3Opendir(), l3Read(), l3Rename(), l3Rmdir(), l3Stat(), l3Truncate(), l3Unlink(), l3Write(), lfRestartGetWithInfo(), lfRestartPutWithInfo(), linkCollReg(), load_rules(), localProcStat(), localToUnixTime(), lsCollUtil(), lsUtil(), mcollUtil(), mkColl(), mkCollR(), mkdirR(), mkdirUtil(), modCollInfo2(), mountFileDir(), moveMountedCollDataObj(), msiCheckHostAccessControl(), msiDigestMonStat(), msiExecCmd(), msiServerMonPerf(), msiSetMultiReplPerResc(), msiStrCat(), msiSysMetaModify(), mvObjUtil(), non_blocking_file_readdir(), irods::experimental::io::client::basic_transport< CharT >::open_impl(), parseCmdLinePath(), parseHostAddrStr(), parseLocalPath(), parseMsKeyValStrForCollInp(), parseMsKeyValStrForDataObjInp(), parseMsKeyValStrForStructFileExtAndRegInp(), parseMspForCollInp(), parseMspForDataObjCopyInp(), parseMspForDataObjInp(), parseMspForExecCmdInp(), parsePackInstruct(), parseResForCollInp(), parseRodsPath(), parseRodsPathStr(), phyBundle(), phybunUtil(), phymvDataObjUtil(), popStack(), postProcBulkPut(), printNoSync(), procChksumForClose(), irods::resource_manager::process_init_results(), putDirUtil(), putFileUtil(), putUtil(), querySpecColl(), queueSpecCollCache(), queueSpecCollCacheWithObjStat(), queZone(), rclOpenCollection(), readICatUserInfo(), readPathnamePatternsFromFile(), readStartupPack(), regNewObjSize(), regPhySubFile(), regSubfile(), regUnbunPhySubfiles(), regUtil(), remoteExec(), remoteProcStat(), renameFilePathToNewDir(), repl_object(), replAndAddSubFileToDir(), replDataObjUtil(), irods::create_write_replicator::replicate(), resizeStrArray(), resoAndConnHostByDataObjInfo(), resolveLinkedPath(), resolveRodsTarget(), resolveSpecCollType(), rmCollUtil(), rmDataObjUtil(), rmdirCollUtil(), rmdirR(), rmtrashCollUtil(), rmtrashDataObjUtil(), rmtrashUtil(), rodsLog(), rodsLogAndErrorMsg(), rsCollRepl(), rsDataObjCopy(), rsDataObjCreateAndStat(), rsDataObjLseek(), rsDataObjOpenAndStat(), rsDataObjRepl(), rsDataObjRsync(), rsExecCmd(), rsExecMyRule(), rsGetHierFromLeafId(), rsGetMiscSvrInfo(), rsGetRemoteZoneResc(), rsMkBundlePath(), rsMkCollR(), rsMkOrphanPath(), rsModAccessControl(), rsMvCollToTrash(), rsMvDataObjToTrash(), rsObjStat(), rsOpenCollection(), rsPhyBundleColl(), rSplitStr(), rsRegColl(), rsReplAndRequeDataObjInfo(), rsRsyncDataToData(), rsSendXmsg(), rsStructFileBundle(), rsStructFileExtAndReg(), rsStructFileExtract(), rsSyncMountedColl(), rsyncCollToCollUtil(), rsyncCollToDirUtil(), rsyncDataToDataUtil(), rsyncDataToFileUtil(), rsyncFileToDataUtil(), sendBulkPut(), sendStartupPack(), sendVersion(), set_plugin_instance_name(), setLocalSrvAddr(), setRescQuota(), setRhostInfo(), setRsCommFromRodsEnv(), setSqlResultValue(), setStateForRestart(), setStateForResume(), setStrLeafValue(), setUserInfo(), smsi_collection(), smsi_delayExec(), smsi_remoteExec(), smsi_setGlobalSessionId(), specCollClosedir(), specCollReaddir(), specCollSubStat(), splitPathByKey(), sslSendRodsMsg(), stage_tar_struct_file(), stageBundledData(), statPathInSpecColl(), statPhysFile(), structFileReg(), structFileSupport(), svrUnregColl(), sync_cache_dir_to_tar_file(), syncCollPhyPath(), syncDataObjPhyPathS(), tar_file_extract(), tar_file_sync(), tar_struct_file_open(), test_source_replica_for_write_permissions(), trimDataObjInfo(), trimDataObjUtil(), trySpecificQueryDataObjInCollReCur(), unbunAndStageBunfileObj(), unbunBulkBuf(), unbunPhyBunFile(), univ_mss_file_stat(), univ_mss_file_sync_to_arch(), unix_file_readdir(), unmountFileDir(), updateOffsetTimeStr(), irods::reg_repl::verify_and_update_replica(), writeICatUserLogging(), and writeRestartFile().

Here is the call graph for this function:

◆ rstrncat()

char* rstrncat ( char *  dest,
const char *  src,
int  srcLen,
int  maxLen 
)

Definition at line 106 of file stringOpr.cpp.

References run_tests::dest, LOG_DEBUG, LOG_ERROR, NULL, and rodsLog().

Referenced by addBetweenClauseToWhere(), and addInClauseToWhereForIn().

Here is the call graph for this function:

◆ splitPathByKey()

◆ trimQuotes()

int trimQuotes ( char *  s)

Definition at line 280 of file stringOpr.cpp.

◆ trimWS()

int trimWS ( char *  s)