Ejemplo n.º 1
0
 static
 PRInt32 compare( const PRUnichar* a, const char* b, PRUint32 max, bool ic )
   {
     return Compare2To1(a, b, max, ic);
   }
Ejemplo n.º 2
0
 static
 int32_t compare( const char16_t* a, const char* b, uint32_t max, bool ic )
 {
     return Compare2To1(a, b, max, ic);
 }
Ejemplo n.º 3
0
/**
 * This method compares the data in one buffer with another
 * @update	gess 01/04/99
 * @param   aStr1 is the first buffer to be compared
 * @param   aStr2 is the 2nd buffer to be compared
 * @param   aCount is the number of chars to compare
 * @param   aIgnoreCase tells us whether to use a case-sensitive comparison
 * @return  -1,0,1 depending on <,==,>
 */
inline PRInt32
Compare1To2(const char* aStr1,const PRUnichar* aStr2,PRUint32 aCount,bool aIgnoreCase){
  return Compare2To1(aStr2, aStr1, aCount, aIgnoreCase) * -1;
}
Ejemplo n.º 4
0
/**
 * This method compares the data in one buffer with another
 * @update	gess 01/04/99
 * @param   aStr1 is the first buffer to be compared
 * @param   aStr2 is the 2nd buffer to be compared
 * @param   aCount is the number of chars to compare
 * @param   aIgnoreCase tells us whether to use a case-sensitive comparison
 * @return  -1,0,1 depending on <,==,>
 */
inline int32_t
Compare1To2(const char* aStr1,const char16_t* aStr2,uint32_t aCount,bool aIgnoreCase) {
    return Compare2To1(aStr2, aStr1, aCount, aIgnoreCase) * -1;
}