search for: in_str

Displaying 3 results from an estimated 3 matches for "in_str".

Did you mean: id_str
2010 Jun 09
1
TermGenerator incorrectly tokenizes German text which contains special characters
...le I get these results: *mb_detect_encoding($lSomeStringFromDb) => ASCII mb_check_encoding($lSomeStringFromDb, "UTF-8") => true* No matter what conversions I do the variable is detected as ASCII. *// http://www.php.net/manual/en/function.utf8-encode.php#89789 function fixEncoding($in_str) { $cur_encoding = mb_detect_encoding($in_str) ; if($cur_encoding == "UTF-8" && mb_check_encoding($in_str,"UTF-8")) return $in_str; else return utf8_encode($in_str); } // fixEncoding if (mb_detect_encoding($lString) == "ASCII") $lString = mb_conver...
2011 Oct 03
2
patch: Replace many usleep and some sleep calls with nanosleep
...ICTRON_OVER 128 #define VICTRON_RB 1 @@ -86,7 +86,7 @@ static int get_data (const char *out_str { int ret_code; ser_send(upsfd, "%s%c", out_string, ENDCHAR); - usleep (UPS_DELAY); + struct timespec delay = {0, UPS_DELAY}; nanosleep(&delay, NULL); ret_code = ser_get_line(upsfd, in_string, LENGTH_TEMP, ENDCHAR, IGNCHARS, 3, 0); if (ret_code < 1) { @@ -498,7 +498,7 @@ void upsdrv_updateinfo(void) void upsdrv_shutdown(void) { ser_send(upsfd, "vCc0!%c", ENDCHAR); - usleep(UPS_DELAY); + struct timespec delay = {0, UPS_DELAY}; nanosleep(&delay,...
2011 Jun 02
48
[PATCH 0/9] libxl: disk configuration handling
This is v3 of my disk series. What were previously patches 01-06 have been applied. These are the tested and updated remainder, addressing the previous comments. 1 Preparatory work. 2-4 The new parser and its documentation. 5-6 Replace old parsers with calls to the new one. 7-8 Two features, one of them essential. 9 Basic test suite for disk string parsing, as adhoc script.