1N/A/*********************************************************************** 1N/A* This software is part of the ast package * 1N/A* Copyright (c) 1985-2011 AT&T Intellectual Property * 1N/A* and is licensed under the * 1N/A* Common Public License, Version 1.0 * 1N/A* by AT&T Intellectual Property * 1N/A* A copy of the License is available at * 1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 1N/A* Information and Software Systems Research * 1N/A* Glenn Fowler <gsf@research.att.com> * 1N/A* David Korn <dgk@research.att.com> * 1N/A* Phong Vo <kpv@research.att.com> * 1N/A***********************************************************************/ 1N/A * regex collation symbol support 1N/A * return the collating symbol delimited by [c c], where c is either '=' or '.' 1N/A * s points to the first char after the initial [ 1N/A * if e!=0 it is set to point to the next char in s on return 1N/A * the collating symbol is converted to multibyte in <buf,size> 1N/A * the return value is: 1N/A * -1 syntax error / invalid collating element 1N/A * >=0 size with 0-terminated mb character (*wc != 0) 1N/A * or collating element (*wc == 0) in buf 1N/A if ((r = (s - t)) >
1)
1N/A for (i = 0; i < r && i <
sizeof(
tmp) -
1; i++)