Equivalence of java.util.ResourceBundle in C++ -
i have java class uses more lines similar following ones
private static final int param_1 = integer.valueof(resourcebundle.getbundle("solution.filtres").getstring("filtre.param1.solution")); private static final int param_2 = integer.valueof(resourcebundle.getbundle("solution.filtres").getstring("filtre.param2.solution"));
and file filtres.properties
found in solution
folder contains:
filtre.param1.solution=1.5 filtre.param2.solution=6
i know resourcebundle
used user locale, seems assigns values static members specific file.
i want similar in c++. have found this c++, seems little strange does; asking:
- is similar resourcebundle in c++ (not have found)? if yes, what, , can find examples?
- do advice me in simpler way?
i appreciate code if did kind of assignments.
resourcebundle allows retrieve textual data key, returning result based on specified locale. i'm not aware of exact match in c++, recommend using gnu gettext() option implementing similar type of internationalization support.
Comments
Post a Comment