axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ros...@apache.org
Subject cvs commit: ws-axis/c/src/common AxisUtils.h AxisUtils.cpp
Date Sun, 19 Oct 2003 17:00:43 GMT
roshan      2003/10/19 10:00:42

  Modified:    c/src/common AxisUtils.h AxisUtils.cpp
  Log:
  added utility methods
  
  Revision  Changes    Path
  1.9       +41 -2     ws-axis/c/src/common/AxisUtils.h
  
  Index: AxisUtils.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/common/AxisUtils.h,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- AxisUtils.h	11 Oct 2003 14:44:48 -0000	1.8
  +++ AxisUtils.h	19 Oct 2003 17:00:42 -0000	1.9
  @@ -56,6 +56,7 @@
    *
    *
    * @author Susantha Kumara (skumara@virtusa.com)
  + * @author Roshan Weerasuriya (roshan@jkcs.slt.lk, roshan@opensource.lk)
    *
    */
   // AxisUtils.h: interface for the AxisUtils class.
  @@ -77,8 +78,46 @@
   	friend class TypeMapping;
   	friend class URIMapping;
   public:
  -	/*
  -	 *Clears the content of passed character array
  +	/**
  +	 * Converts the given character pointer value to lowercase.
  +	 * @param pchWord The character pointer to be converted.
  +	 * @return The converted lowercase character value
  +	 */
  +	static char* toLowerCase(const char* pchWord);
  +	/**
  +	 * Converts the given string to lowercase.
  +	 * @param pchWord The string to be converted.
  +	 * @return The converted lowercase string value
  +	 */
  +	static string toLowerCase(const string sWord);
  +	/**
  +	 * Converts the given character pointer value to uppercase.
  +	 * @param pchWord The character pointer to be converted.
  +	 * @return The converted uppercase character value
  +	 */
  +	static char* toUpperCase(const char* pchWord);
  +	/**
  +	 * Converts the given string to uppercase.
  +	 * @param pchWord The string to be converted.
  +	 * @return The converted uppercase string value
  +	 */
  +	static string toUpperCase(const string sWord);
  +	/**
  +	 * Searchs for the specified character in the given character array and returns whether
it is found or not.
  +	 * @param pchStringToSearch The character array to be searched.
  +	 * @param cCharacter The character to search.
  +	 */
  +	static bool isCharacterAvailable(const char *pchStringToSearch, const char cCharacter);
  +	/**
  +	 * Searchs for the specified character in the given string and returns whether it is found
or not.
  +	 * @param sString The string array to be searched.
  +	 * @param cCharacter The character to search.
  +	 */
  +	static bool isCharacterAvailable(const string &sString, const char cCharacter);
  +	/**
  +	 * Clears the content of passed character array
  +	 * @param arrCh The character array which is to be cleared.
  +	 * @param iSize The size of the array which is to be cleared.
   	 */
   	static int clearArray(char* arrCh, int iSize);
   	static void Initialize();
  
  
  
  1.9       +51 -0     ws-axis/c/src/common/AxisUtils.cpp
  
  Index: AxisUtils.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/common/AxisUtils.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- AxisUtils.cpp	11 Oct 2003 14:44:48 -0000	1.8
  +++ AxisUtils.cpp	19 Oct 2003 17:00:42 -0000	1.9
  @@ -56,6 +56,7 @@
    *
    *
    * @author Susantha Kumara (skumara@virtusa.com)
  + * @author Roshan Weerasuriya (roshan@jkcs.slt.lk, roshan@opensource.lk)
    *
    */
   
  @@ -114,4 +115,54 @@
   	}
   
   	return SUCCESS;
  +}
  +
  +bool AxisUtils::isCharacterAvailable(const string &sString, const char cCharacter)
  +{
  +	bool bFoundStatus = false;
  +
  +	if ((sString.find(cCharacter, 0)) != string::npos) {
  +		bFoundStatus = true;
  +	}
  +
  +	return bFoundStatus;
  +}
  +
  +bool AxisUtils::isCharacterAvailable(const char *pchStringToSearch, const char cCharacter)
  +{
  +	bool bFoundStatus = false;
  +
  +	if ( strchr(pchStringToSearch, cCharacter) ) {
  +		bFoundStatus = true;
  +	}
  +
  +	return bFoundStatus;
  +}
  +
  +string AxisUtils::toUpperCase(const string sWord)
  +{
  +	/*Fill the code*/
  +
  +	return NULL;
  +}
  +
  +char* AxisUtils::toUpperCase(const char *pchWord)
  +{
  +	/*Fill the code*/
  +
  +	return NULL;
  +}
  +
  +string AxisUtils::toLowerCase(const string sWord)
  +{
  +	/*Fill the code*/
  +
  +	return NULL;
  +}
  +
  +char* AxisUtils::toLowerCase(const char *pchWord)
  +{
  +	/*Fill the code*/
  +
  +	return NULL;
   }
  
  
  

Mime
View raw message