예제 #1
0
파일: _num_get.c 프로젝트: inetra/peers1
inline bool _STLP_CALL __get_fdigit_or_sep(char& __c, char __sep, const char *__digits) {
  if (__c == __sep) {
    __c = ',' ;
    return true ;
  }
  else
    return  __get_fdigit(__c, __digits);
}
예제 #2
0
pair<char, bool>  __STL_CALL __get_fdigit_or_sep(wchar_t c, wchar_t sep,
                                                 const wchar_t * digits)
{
  if (c == sep)
    return pair<char, bool>(',', true);
  else
    return __get_fdigit(c, digits);
}
예제 #3
0
파일: num_get.cpp 프로젝트: 0-T-0/linux-sgx
bool _STLP_CALL __get_fdigit_or_sep(wchar_t& c, wchar_t sep,
                                    const wchar_t * digits) {
  if (c == sep) {
    c = (char)',';
    return true;
  }
  else
    return __get_fdigit(c, digits);
}
예제 #4
0
파일: _num_get.c 프로젝트: inetra/peers1
bool _STLP_CALL
__copy_digits(_InputIter& __first, _InputIter __last,
              __iostring& __v, const _CharT* __digits) {
  bool __ok = false;

  for ( ; __first != __last; ++__first) {
    _CharT __c = *__first;
    if (__get_fdigit(__c, __digits)) {
      __v.push_back((char)__c);
      __ok = true;
    }
    else
      break;
  }
  return __ok;
}