diff src/ui/mfw/mfw_cnvt.c @ 188:92abb46dc1ba

src/ui/mfw/*.[ch]: rm trailing white space
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 19 Jan 2021 06:10:27 +0000
parents 67bfe9f274f6
children
line wrap: on
line diff
--- a/src/ui/mfw/mfw_cnvt.c	Tue Jan 19 05:41:26 2021 +0000
+++ b/src/ui/mfw/mfw_cnvt.c	Tue Jan 19 06:10:27 2021 +0000
@@ -74,7 +74,7 @@
 
 /* Added to remove warning Aug - 11 */
 EXTERN char   ATB_char_GSM (char ascii_character);
-/* End - remove warning Aug - 11 */ 
+/* End - remove warning Aug - 11 */
 /*
 +---------------------------------------------------------------+
 | PROJECT: MMI-Framework (8417)         MODULE: MFW_CNVT        |
@@ -82,16 +82,16 @@
 +---------------------------------------------------------------+
 
    PURPOSE : This function is used to request the coding format
-             of a given string. The return value is 
+             of a given string. The return value is
              "MFW_DCS_7bits" or " MFW_DCS_UCS2".
 
 */
 
 T_MFW_DCS mfw_getStrMode( UBYTE *str, // alpha string in MFW
                           UBYTE len)  // length of alpha string
-                         
+
 {
-  
+
   if( str[0] == 0x80)
     return MFW_DCS_UCS2;
   else
@@ -108,22 +108,22 @@
              formatted string (consisting of alpha name and
              length of name in bytes) to a GSM default string
              (including zero-termination) and to additionally
-             set the @ code to 0x80. 
-   
+             set the @ code to 0x80.
+
 */
 
-T_MFW mfw_SIM2GsmStr( UBYTE inLen, 
-                      UBYTE *inMfwStr, 
+T_MFW mfw_SIM2GsmStr( UBYTE inLen,
+                      UBYTE *inMfwStr,
                       UBYTE maxOutSize,   /* in byte */
                       UBYTE *outGsmStr )
-                     
+
 {
   int i;
   UBYTE len;
-  
+
   if (!inLen OR !maxOutSize)
     return FAILED;        /* string is zero length */
-  
+
   if (*inMfwStr EQ 0x80)  /* input UCS, output GSM default */
   {
     len = inLen / 2;      /* GSM string is half length of unicode string */
@@ -148,7 +148,7 @@
     }
     outGsmStr[i] = '\0';
     return PASSED;
-  }            
+  }
 
 }
 
@@ -162,27 +162,27 @@
              formatted string to a unicode string. The first
              two bytes of this unicode string indicates the
              number of characters in the string.
-   
+
 */
 
-T_MFW mfw_SIM2UcsStr( UBYTE   inLen, 
-                      UBYTE*  inMfwStr, 
+T_MFW mfw_SIM2UcsStr( UBYTE   inLen,
+                      UBYTE*  inMfwStr,
                       UBYTE   maxOutSize,    /* in short */
                       U16*    outUcsStr)
-                     
+
 {
   int i;
   short cnt;
-  
+
   if (!inLen OR !maxOutSize)
     return FAILED;
-  
+
   if (inMfwStr[0] EQ 0x80)  /* input UCS, output UCS */
   {
   TRACE_FUNCTION("First byte is indeed 0x80");
     //inMfwStr++;
     inLen--;
-    
+
     // NOTE: do not add '\0' termination!
     // len should not include termination
     cnt = 1;
@@ -190,7 +190,7 @@
     {
       outUcsStr[ i + LEN_OFFSET] = ((U16)inMfwStr[cnt] << 8)&0xFF00 + ((U16)inMfwStr[cnt + 1])&0xFF;
       cnt += 2;
-    } 
+    }
     outUcsStr[0] = i;
     return PASSED;
   }
@@ -198,7 +198,7 @@
   {
     for( i=0; i<MINIMUM(inLen,maxOutSize-1); i++ )
       * (outUcsStr + i + LEN_OFFSET) = (U16) inMfwStr[i];
-    
+
     outUcsStr[0] = i;     /* length of unicode string */
     return PASSED;
   }
@@ -211,31 +211,31 @@
 +---------------------------------------------------------------+
 
    PURPOSE : This function is used to convert a zero-terminated
-             GSM default string ( @ code is 0x80) to a MFW 
+             GSM default string ( @ code is 0x80) to a MFW
              alpha formatted string (consisting of alpha name
-             and length of name in bytes and @ code is 0x00). 
-             The MFW alpha format is dependent on the parameter "outMode" 
-             "outMode" is set to either " MFW_DCS_7bits" or " MFW_DCS_UCS2" 
+             and length of name in bytes and @ code is 0x00).
+             The MFW alpha format is dependent on the parameter "outMode"
+             "outMode" is set to either " MFW_DCS_7bits" or " MFW_DCS_UCS2"
 
-GW-SPR#762- Increased array size - required for larger phonebook entries (>40 chars). 
+GW-SPR#762- Increased array size - required for larger phonebook entries (>40 chars).
 */
 
 #define MAX_CONVERT_LEN 255
-T_MFW mfw_Gsm2SIMStr( T_MFW_DCS outMode, 
-                      UBYTE *inGsmStr, 
+T_MFW mfw_Gsm2SIMStr( T_MFW_DCS outMode,
+                      UBYTE *inGsmStr,
                       UBYTE maxOutSize,
                       UBYTE *outMfwStr,
                       UBYTE *outLen )
 {
-  
+
   UBYTE temp_str[MAX_CONVERT_LEN];
   int i;
   UBYTE len = (UBYTE) strlen( (char *)inGsmStr );
   char GSM_char;/*SPR2175*/
-  
+
   len=MINIMUM(len,sizeof(temp_str));
   memcpy( temp_str,inGsmStr,len );
-  
+
   if( outMode EQ MFW_DCS_7bits )
   {
     /* write to outMfwStr */
@@ -269,7 +269,7 @@
     TRACE_EVENT ("mfw_Gsm2SIMStr() - outMode is not valid");
     return FAILED;
   }
-  
+
 //  return PASSED;  // RAVI
 }
 
@@ -280,23 +280,23 @@
 +---------------------------------------------------------------+
 
    PURPOSE : This function is used to convert a unicode string
-             to MFW alpha format. The MFW alpha format is 
-             dependent on the parameter "outMode". "outMode" 
+             to MFW alpha format. The MFW alpha format is
+             dependent on the parameter "outMode". "outMode"
              is " MFW_DCS_7bits" or " MFW_DCS_UCS2".
-   
+
 */
 
-T_MFW mfw_Ucs2SIMStr( T_MFW_DCS outMode, 
-                      U16 *inDcsStr, 
+T_MFW mfw_Ucs2SIMStr( T_MFW_DCS outMode,
+                      U16 *inDcsStr,
                       UBYTE maxOutSize,
                       UBYTE *outMfwStr,
                       UBYTE *outLen )
 {
   int i;
   U16 len;
-  
+
   len = inDcsStr[0];
-  
+
   if( outMode EQ MFW_DCS_7bits )
   {
     /* write to outMfwStr */
@@ -307,7 +307,7 @@
     }
     /* write length of name to outLen */
     *outLen = len * 2;
-    
+
     return PASSED;
   }
   else if( outMode EQ MFW_DCS_UCS2 )
@@ -321,16 +321,16 @@
     }
     /* write length to outLen */
     *outLen = (len*2) + 1;
-    
+
     return PASSED;
-    
+
   }
   else	/* string does not require conversion to unicode */
   {
     TRACE_EVENT ("mfw_Ucs2SIMStr() - outMode is not valid");
     return FAILED;
   }
-  
+
 //  return PASSED;  // RAVI
 }