Diff
Not logged in

Differences From Artifact [1f829b2e0d]:

To Artifact [9457d8b6d7]:


489
490
491
492
493
494
495



496
497
498
499
500
501
502
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505







+
+
+







	    /*
	     * Three-byte-character lead byte followed by two trail bytes.
	     */

	    *chPtr = (((byte & 0x0F) << 12)
		    | ((src[1] & 0x3F) << 6) | (src[2] & 0x3F));
	    if (*chPtr > 0x7FF) {
		if ((*chPtr & 0xF800) == 0xD800) {
		    *chPtr = 0xFFFD;
		}
		return 3;
	    }
	}

	/*
	 * A three-byte-character lead-byte not followed by two trail-bytes
	 * represents itself.
585
586
587
588
589
590
591



592
593
594
595
596
597
598
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604







+
+
+







	    /*
	     * Three-byte-character lead byte followed by two trail bytes.
	     */

	    *chPtr = (((byte & 0x0F) << 12)
		    | ((src[1] & 0x3F) << 6) | (src[2] & 0x3F));
	    if (*chPtr > 0x7FF) {
		if ((*chPtr & 0xF800) == 0xD800) {
		    *chPtr = 0xFFFD;
		}
		return 3;
	    }
	}

	/*
	 * A three-byte-character lead-byte not followed by two trail-bytes
	 * represents itself.