Logo Search packages:      
Sourcecode: xulrunner version File versions  Download package

void nsID::ToProvidedString ( char(&)  dest[NSID_LENGTH]  )  const

nsID string encoder. Builds a string in {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} format, into a char[NSID_LENGTH] buffer provided by the caller (for instance, on the stack).

Definition at line 143 of file nsID.cpp.

{
  PR_snprintf(dest, NSID_LENGTH, gIDFormat,
              m0, (PRUint32) m1, (PRUint32) m2,
              (PRUint32) m3[0], (PRUint32) m3[1], (PRUint32) m3[2],
              (PRUint32) m3[3], (PRUint32) m3[4], (PRUint32) m3[5],
              (PRUint32) m3[6], (PRUint32) m3[7]);
}


Generated by  Doxygen 1.6.0   Back to index