Sha256: 435aff1ce88152517a03519171ea6b9939f8982c19b6a29a48d94498e796aa61

Contents?: true

Size: 419 Bytes

Versions: 6

Compression:

Stored size: 419 Bytes

Contents

#include "filegdb.hpp"

std::wstring to_wstring(const char *input) {
  std::string converted(input);
  return std::wstring(converted.begin(), converted.end());
}

const char* to_char_array(std::wstring str) {
  return std::string(str.begin(), str.end()).c_str();
}

const char *fgdb_error_string(fgdbError hr) {
  wstring errorText;
  ErrorInfo::GetErrorDescription(hr, errorText);
  return to_char_array(errorText);
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
filegdb-0.0.6 ext/filegdb/util.cpp
filegdb-0.0.5 ext/filegdb/util.cpp
filegdb-0.0.4 ext/filegdb/util.cpp
filegdb-0.0.3 ext/filegdb/util.cpp
filegdb-0.0.2 ext/filegdb/util.cpp
filegdb-0.0.1 ext/filegdb/util.cpp