On 28/03/13 10:49, Carsten Haitzler (The Rasterman) wrote:
> On Thu, 28 Mar 2013 09:56:40 +0000 Michael Blumenkrantz
> <[email protected]> said:
>
> thats cool. i just had to be grumpy about not having a bug report that told me
> what to look at instantly. i have found another bug. single letter words dont
> find word end markers.
I just checked it, and it works for me:
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>
#include <wordbreak.h>
int main()
{
{
const char *lang = "";
wchar_t *text = L"This is a test";
size_t len = wcslen(text);
char *breaks = malloc(len);
size_t i;
printf("%ls\n", text);
set_wordbreaks_utf32((const utf32_t *) text, len, lang, breaks);
for (i = 0 ; i < len ; i++)
printf("%d", (int) breaks[i]);
printf("\n");
}
return 0;
}
The output is:
This is a test
11100100001110
1s meaning no break, 0s meaning break here. It does break correctly
around the "a". Could you elaborate more on the bug you were seeing?
Cheers,
Tom.
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel