intl/lwbrk/src/rulebrk.h

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 /*
michael@0 2 Copyright (c) 1999 Samphan Raruenrom <samphan@thai.com>
michael@0 3 Permission to use, copy, modify, distribute and sell this software
michael@0 4 and its documentation for any purpose is hereby granted without fee,
michael@0 5 provided that the above copyright notice appear in all copies and
michael@0 6 that both that copyright notice and this permission notice appear
michael@0 7 in supporting documentation. Samphan Raruenrom makes no
michael@0 8 representations about the suitability of this software for any
michael@0 9 purpose. It is provided "as is" without express or implied warranty.
michael@0 10 */
michael@0 11 #ifndef __RULEBRK_H__
michael@0 12 #define __RULEBRK_H__
michael@0 13 #include "th_char.h"
michael@0 14
michael@0 15 #ifdef __cplusplus
michael@0 16 extern "C" {
michael@0 17 #endif
michael@0 18
michael@0 19 int TrbWordBreakPos(const th_char *pstr, int left,
michael@0 20 const th_char *rstr, int right);
michael@0 21 int TrbFollowing(const th_char *begin, int length, int offset);
michael@0 22
michael@0 23 #ifdef __cplusplus
michael@0 24 }
michael@0 25 #endif
michael@0 26 #endif

mercurial