Skip to content

Commit

Permalink
update visibility attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
robertramey committed Oct 20, 2015
1 parent b0a2809 commit 9fcf2ae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
11 changes: 6 additions & 5 deletions include/boost/detail/utf8_codecvt_facet.hpp
Expand Up @@ -113,8 +113,9 @@ struct BOOST_UTF8_DECL utf8_codecvt_facet :
explicit utf8_codecvt_facet(std::size_t no_locale_manage=0)
: std::codecvt<wchar_t, char, std::mbstate_t>(no_locale_manage)
{}
virtual ~utf8_codecvt_facet(){}
protected:
virtual std::codecvt_base::result do_in(
BOOST_UTF8_DECL virtual std::codecvt_base::result do_in(
std::mbstate_t& state,
const char * from,
const char * from_end,
Expand All @@ -124,7 +125,7 @@ struct BOOST_UTF8_DECL utf8_codecvt_facet :
wchar_t*& to_next
) const;

virtual std::codecvt_base::result do_out(
BOOST_UTF8_DECL virtual std::codecvt_base::result do_out(
std::mbstate_t & state,
const wchar_t * from,
const wchar_t * from_end,
Expand All @@ -148,11 +149,11 @@ struct BOOST_UTF8_DECL utf8_codecvt_facet :
return get_octet_count(lead_octet) - 1;
}

static unsigned int get_octet_count(unsigned char lead_octet);
BOOST_UTF8_DECL static unsigned int get_octet_count(unsigned char lead_octet);

// How many "continuing octets" will be needed for this word
// == total octets - 1.
int get_cont_octet_out_count(wchar_t word) const ;
BOOST_UTF8_DECL int get_cont_octet_out_count(wchar_t word) const ;

virtual bool do_always_noconv() const BOOST_NOEXCEPT_OR_NOTHROW {
return false;
Expand All @@ -176,7 +177,7 @@ struct BOOST_UTF8_DECL utf8_codecvt_facet :

// How many char objects can I process to get <= max_limit
// wchar_t objects?
virtual int do_length(
BOOST_UTF8_DECL virtual int do_length(
const std::mbstate_t &,
const char * from,
const char * from_end,
Expand Down
10 changes: 5 additions & 5 deletions include/boost/detail/utf8_codecvt_facet.ipp
Expand Up @@ -31,7 +31,7 @@ BOOST_UTF8_BEGIN_NAMESPACE
// implementation for wchar_t

// Translate incoming UTF-8 into UCS-4
std::codecvt_base::result utf8_codecvt_facet::do_in(
BOOST_UTF8_DECL std::codecvt_base::result utf8_codecvt_facet::do_in(
std::mbstate_t& /*state*/,
const char * from,
const char * from_end,
Expand Down Expand Up @@ -108,7 +108,7 @@ std::codecvt_base::result utf8_codecvt_facet::do_in(
else return std::codecvt_base::partial;
}

std::codecvt_base::result utf8_codecvt_facet::do_out(
BOOST_UTF8_DECL std::codecvt_base::result utf8_codecvt_facet::do_out(
std::mbstate_t& /*state*/,
const wchar_t * from,
const wchar_t * from_end,
Expand Down Expand Up @@ -170,7 +170,7 @@ std::codecvt_base::result utf8_codecvt_facet::do_out(

// How many char objects can I process to get <= max_limit
// wchar_t objects?
int utf8_codecvt_facet::do_length(
BOOST_UTF8_DECL int utf8_codecvt_facet::do_length(
const std::mbstate_t &,
const char * from,
const char * from_end,
Expand Down Expand Up @@ -201,7 +201,7 @@ int utf8_codecvt_facet::do_length(
return static_cast<int>(from_next-from_end);
}

unsigned int utf8_codecvt_facet::get_octet_count(
BOOST_UTF8_DECL unsigned int utf8_codecvt_facet::get_octet_count(
unsigned char lead_octet
){
// if the 0-bit (MSB) is 0, then 1 character
Expand Down Expand Up @@ -273,7 +273,7 @@ int get_cont_octet_out_count_impl<4>(wchar_t word){

// How many "continuing octets" will be needed for this word
// == total octets - 1.
int utf8_codecvt_facet::get_cont_octet_out_count(
BOOST_UTF8_DECL int utf8_codecvt_facet::get_cont_octet_out_count(
wchar_t word
) const {
return detail::get_cont_octet_out_count_impl<sizeof(wchar_t)>(word);
Expand Down

0 comments on commit 9fcf2ae

Please sign in to comment.