Changes in uspace/lib/posix/locale.c [55b1efd:a12f7f1] in mainline
- File:
-
- 1 edited
-
uspace/lib/posix/locale.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/locale.c
r55b1efd ra12f7f1 42 42 #include "string.h" 43 43 44 /* Just a very basic dummy implementation. 45 * This should allow code using locales to work properly, but doesn't provide 46 * any localization functionality. 47 * Should be extended/rewritten when or if HelenOS supports locales natively. 48 */ 44 // TODO: documentation 49 45 50 46 struct __posix_locale { … … 80 76 81 77 /** 82 * Set program locale.83 78 * 84 * @param category What category to set.85 * @param locale Locale name.86 * @return Original locale name on success, NULL on failure.79 * @param category 80 * @param locale 81 * @return 87 82 */ 88 83 char *posix_setlocale(int category, const char *locale) … … 97 92 98 93 /** 99 * Return locale-specific information.100 94 * 101 * @return Information about the current locale.95 * @return 102 96 */ 103 97 struct posix_lconv *posix_localeconv(void) … … 108 102 109 103 /** 110 * Duplicate locale object.111 104 * 112 * @param locobj Object to duplicate.113 * @return Duplicated object.105 * @param locobj 106 * @return 114 107 */ 115 108 posix_locale_t posix_duplocale(posix_locale_t locobj) … … 129 122 130 123 /** 131 * Free locale object.132 124 * 133 * @param locobj Object to free.125 * @param locobj 134 126 */ 135 127 void posix_freelocale(posix_locale_t locobj) … … 141 133 142 134 /** 143 * Create or modify a locale object.144 135 * 145 * @param category_mask Mask of categories to be set or modified.146 * @param locale Locale to be used.147 * @param base Object to modify. 0 if new object is to be created.148 * @return The new/modified locale object.136 * @param category_mask 137 * @param locale 138 * @param base 139 * @return 149 140 */ 150 141 posix_locale_t posix_newlocale(int category_mask, const char *locale, … … 169 160 170 161 /** 171 * Set locale for the current thread.172 162 * 173 * @param newloc Locale to use.174 * @return The previously set locale or LC_GLOBAL_LOCALE163 * @param newloc 164 * @return 175 165 */ 176 166 posix_locale_t posix_uselocale(posix_locale_t newloc) 177 167 { 178 168 // TODO 179 return LC_GLOBAL_LOCALE;169 return NULL; 180 170 } 181 171
Note:
See TracChangeset
for help on using the changeset viewer.
