Lines Matching defs:buf
90 char buf[1024];
91 buf[0] = 0;
103 strlcat(buf, value, sizeof(buf));
105 strlcat(buf, " ", sizeof(buf));
112 // since 'buf' is empty, ICU would return a UTF-8 matcher with low confidence, so
114 ALOGV("all tags are printable, assuming ascii (%zu)", strlen(buf));
116 ucsdet_setText(csd, buf, strlen(buf), &status);
121 const UCharsetMatch* bestCombinedMatch = getPreferred(buf, strlen(buf),
125 if (!goodmatch && (highest < 15 || strlen(buf) < 20)) {
141 strlcat(buf, value, sizeof(buf));
142 strlcat(buf, " ", sizeof(buf));
147 ucsdet_setText(csd, buf, strlen(buf), &status);
149 bestCombinedMatch = getPreferred(buf, strlen(buf),