Skip to content

Commit

Permalink
Fixing enconding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Sep 22, 2023
1 parent cad3e93 commit d241981
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
1 change: 0 additions & 1 deletion defm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,6 @@ class DEFM : public DEFMModel {

void init();

double likelihood(std::vector< double > & par, bool as_log = false);
void simulate(std::vector< double > par, int * y_out);

size_t get_n_y() const;
Expand Down
24 changes: 12 additions & 12 deletions include/barry/models/defm/counters.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,16 +439,16 @@ inline void counter_transition(
#else
#define UNI_SUB(a) \
(\
((a) == 0) ? "\u2080" : (\
((a) == 1) ? "\u2081" : (\
((a) == 2) ? "\u2082" : (\
((a) == 3) ? "\u2083" : (\
((a) == 4) ? "\u2084" : (\
((a) == 5) ? "\u2085" : (\
((a) == 6) ? "\u2086" : (\
((a) == 7) ? "\u2087" : (\
((a) == 8) ? "\u2088" : \
"\u2089"))))))))\
((a) == 0) ? u8"\u2080" : (\
((a) == 1) ? u8"\u2081" : (\
((a) == 2) ? u8"\u2082" : (\
((a) == 3) ? u8"\u2083" : (\
((a) == 4) ? u8"\u2084" : (\
((a) == 5) ? u8"\u2085" : (\
((a) == 6) ? u8"\u2086" : (\
((a) == 7) ? u8"\u2087" : (\
((a) == 8) ? u8"\u2088" : \
u8"\u2089"))))))))\
)
#endif

Expand Down Expand Up @@ -478,7 +478,7 @@ inline void counter_transition(
#ifdef BARRY_WITH_LATEX
name += (motif(i,j) < 0 ? "^-" : "^+");
#else
name += (motif(i,j) < 0 ? "\u207B" : "\u207A");
name += (motif(i,j) < 0 ? u8"\u207B" : u8"\u207A");
#endif

}
Expand Down Expand Up @@ -520,7 +520,7 @@ inline void counter_transition(
#ifdef BARRY_WITH_LATEX
name += (motif(m_order, j) < 0 ? "^-" : "^+" );
#else
name += (motif(m_order, j) < 0 ? "\u207B" : "\u207A" );
name += (motif(m_order, j) < 0 ? u8"\u207B" : u8"\u207A" );
#endif


Expand Down
1 change: 0 additions & 1 deletion include/barry/models/defm/defm-bones.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class DEFM : public DEFMModel {

void init();

double likelihood(std::vector< double > & par, bool as_log = false);
void simulate(std::vector< double > par, int * y_out);

size_t get_n_y() const;
Expand Down

0 comments on commit d241981

Please sign in to comment.