<commit_before>/*!
    \file dll.inl
    \brief Dynamic link library inline implementation
    \author <NAME>
    \date 07.06.2017
    \copyright MIT License
*/

namespace CppCommon {

template <typename T>
inline T* DLL::Resolve(const std::string& name) const
{
    return (T*)ResolveAddress(name);
}

inline std::string DLL::prefix()
{
#if (defined(unix) || defined(__unix) || defined(__unix__) || defined(__APPLE__)) && !defined(__CYGWIN__)
    return "lib";
#elif defined(__CYGWIN__)
    return "cyg";
#else
    return "";
#endif
}

inline std::string DLL::extension()
{
#if defined(__APPLE__)
    return ".dylib";
#elif defined(unix) || defined(__unix) || defined(__unix__)
    return ".so";
#elif defined(_WIN32) || defined(_WIN64)
    return ".dll";
#else
    return "";
#endif
}

inline void DLL::swap(DLL& dll) noexcept
{
    using std::swap;
    swap(_pimpl, dll._pimpl);
}

inline void swap(DLL& dll1, DLL& dll2) noexcept
{
    dll1.swap(dll2);
}

} // namespace CppCommon<commit_msg>build<commit_after>/*!
    \file dll.inl
    \brief Dynamic link library inline implementation
    \author <NAME>
    \date 07.06.2017
    \copyright MIT License
*/

namespace CppCommon {

template <typename T>
inline T* DLL::Resolve(const std::string& name) const
{
    return (T*)ResolveAddress(name);
}

inline std::string DLL::prefix()
{
#if defined(__CYGWIN__)
    return "cyg";
#elif defined(unix) || defined(__unix) || defined(__unix__) || defined(__APPLE__)
    return "lib";
#else
    return "";
#endif
}

inline std::string DLL::extension()
{
#if defined(__APPLE__)
    return ".dylib";
#elif (defined(unix) || defined(__unix) || defined(__unix__)) && !defined(__CYGWIN__)
    return ".so";
#elif defined(_WIN32) || defined(_WIN64) || defined(__CYGWIN__)
    return ".dll";
#else
    return "";
#endif
}

inline void DLL::swap(DLL& dll) noexcept
{
    using std::swap;
    swap(_pimpl, dll._pimpl);
}

inline void swap(DLL& dll1, DLL& dll2) noexcept
{
    dll1.swap(dll2);
}

} // namespace CppCommon
{'fraction_non_alphanumeric': 0.15760598503740647, 'fraction_numerical': 0.01596009975062344, 'mean_word_length': 4.052896725440806, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3790236', 'n_tokens_mistral': 736, 'n_tokens_neox': 701, 'n_words': 174}