GALGAS__32_stringlist GALGAS_application::constructor_boolOptionNameList (LOCATION_ARGS) { GALGAS__32_stringlist result = GALGAS__32_stringlist::constructor_emptyList (THERE) ; TC_UniqueArray <C_String> array ; C_BoolCommandLineOption::getBoolOptionNameList (array) ; for (int32_t i=0 ; i<array.count () ; i+=2) { result.addAssign_operation (GALGAS_string (array (i COMMA_THERE)), GALGAS_string (array (i+1 COMMA_THERE)) COMMA_THERE) ; } return result ; }
GALGAS_string GALGAS_timer::getter_string (UNUSED_LOCATION_ARGS) const { GALGAS_string result ; if (isValid ()) { result = GALGAS_string (mTimer.timeString ()) ; } return result ; }
GALGAS_string GALGAS_char::getter_utf_33__32_CharConstantRepresentation (UNUSED_LOCATION_ARGS) const { C_String s ; s.appendCString ("TO_UNICODE (") ; s.appendCLiteralCharConstant (mCharValue) ; s.appendCString (")") ; return GALGAS_string (s) ; }
static void internalEnumerateDirectories (const cDirectoryWrapper & inDirectory, const C_String & inWrapperPath, GALGAS_stringlist & ioList) { //--- Enumerate regular files ioList.addAssign_operation (GALGAS_string (inWrapperPath) COMMA_HERE) ; //--- Walk throught directories const cDirectoryWrapper * * mDirs = inDirectory.mDirectories ; while ((* mDirs) != NULL) { C_String path = inWrapperPath ; path << (* mDirs)->mDirectoryName << "/" ; internalEnumerateDirectories (* * mDirs, path, ioList) ; mDirs ++ ; } }
static void internalEnumerateFiles (const cDirectoryWrapper & inDirectory, const C_String & inWrapperPath, const bool inEnumerateTextFile, GALGAS_stringlist & ioList) { //--- Enumerate regular files const cRegularFileWrapper * * mFiles = inDirectory.mFiles ; while ((* mFiles) != NULL) { C_String path = inWrapperPath ; path << (* mFiles)->mName ; if ((* mFiles)->mIsTextFile == inEnumerateTextFile) { ioList.addAssign_operation (GALGAS_string (path) COMMA_HERE) ; } mFiles ++ ; } //--- Walk throught directories const cDirectoryWrapper * * mDirs = inDirectory.mDirectories ; while ((* mDirs) != NULL) { C_String path = inWrapperPath ; path << (* mDirs)->mDirectoryName << "/" ; internalEnumerateFiles (* * mDirs, path, inEnumerateTextFile, ioList) ; mDirs ++ ; } }
static void internalEnumerateFilesWithExtension (const cDirectoryWrapper & inDirectory, const C_String & inWrapperPath, GALGAS_stringlist & ioList, const C_String & inExtension) { //--- Enumerate regular files const cRegularFileWrapper * * mFiles = inDirectory.mFiles ; while ((* mFiles) != NULL) { C_String path = inWrapperPath ; if (inExtension.compare ((* mFiles)->mExtension) == 0) { path << (* mFiles)->mName ; ioList.addAssign_operation (GALGAS_string (path) COMMA_HERE) ; } mFiles ++ ; } //--- Walk throught directories const cDirectoryWrapper * * mDirs = inDirectory.mDirectories ; while ((* mDirs) != NULL) { C_String path = inWrapperPath ; path << (* mDirs)->mDirectoryName << "/" ; internalEnumerateFilesWithExtension (* * mDirs, path, ioList, inExtension) ; mDirs ++ ; } }
GALGAS_string GALGAS_char::getter_string (LOCATION_ARGS) const { C_String s ; s.appendUnicodeCharacter (mCharValue COMMA_THERE) ; return GALGAS_string (s) ; }
GALGAS_string GALGAS_char::getter_unicodeName (UNUSED_LOCATION_ARGS) const { return GALGAS_string (unicodeName (mCharValue)) ; }