This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>WAI-ARIA Test</title> | |
</head> | |
<body> | |
<div role="application" tabindex="0"> | |
<p id="i1" role="alert" aria-live="assertive">i am text.</p> | |
<ul role="navgation"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "utf16.h" | |
#include <errno.h> | |
uint8_t | |
isutf16(const unsigned char* string) | |
{ | |
uint16_t W1, W2; | |
unsigned char *ptr = (unsigned char*) string; | |
while((W1 = *((uint16_t*) ptr)) != 0x0L) { | |
if(W1 < 0xd800 || W1 > 0xdfff) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "utf8.h" | |
#include <errno.h> | |
uint8_t | |
isutf8(const unsigned char *string) | |
{ | |
int nbytes; | |
unsigned char *ptr = (unsigned char *) string; | |
while(*ptr) { | |
nbytes = 1; |
NewerOlder