define('PREG_FIND_RECURSIVE', 1); define('PREG_FIND_DIRMATCH', 2); define('PREG_FIND_FULLPATH', 4); define('PREG_FIND_NEGATE', 8); define('PREG_FIND_DIRONLY', 16); define('PREG_FIND_RETURNASSOC', 32); define('PREG_FIND_SORTDESC', 64); define('PREG_FIND_SORTKEYS', 128); define('PREG_FIND_SORTBASENAME', 256); # requires PREG_FIND_RETURNASSOC define('PREG_FIND_SORTMODIFIED', 512); # requires PREG_FIND_RETURNASSOC define('PREG_FIND_SORTFILESIZE', 1024); # requires PREG_FIND_RETURNASSOC define('PREG_FIND_SORTDISKUSAGE', 2048); # requires PREG_FIND_RETURNASSOC // PREG_FIND_RECURSIVE - go into subdirectorys looking for more files // PREG_FIND_DIRMATCH - return directorys that match the pattern also // PREG_FIND_DIRONLY - return only directorys that match the pattern (no files) // PREG_FIND_FULLPATH - search for the pattern in the full path (dir+file) // PREG_FIND_NEGATE - return files that don't match the pattern // PREG_FIND_RETURNASSOC - Instead of just returning a plain array of matches, // return an associative array with file stats // // You can also request to have the results sorted based on various criteria // By default if any sorting is done, it will be sorted in ascending order. // You can reverse this via use of: // PREG_FIND_SORTDESC - Reverse order of sort // PREG_FILE_SORTKEYS - Sort on the keyvalues or non-assoc array results // The following sorts *require* PREG_FIND_RETURNASSOC to be used as they are // sorting on values stored in the constructed associative array // PREG_FIND_SORTBASENAME - Sort the results in alphabetical order on filename // PREG_FIND_SORTMODIFIED - Sort the results in last modified timestamp order // PREG_FIND_SORTFILESIZE - Sort the results based on filesize // PREG_FILE_SORTDISKUSAGE - Sort based on the amount of disk space taken // to use more than one simply seperate them with a | character // Search for files matching $pattern in $start_dir. // if args contains PREG_FIND_RECURSIVE then do a recursive search // return value is an associative array, the key of which is the path/file // and the value is the stat of the file. Function preg_find($pattern, $start_dir='.', $args=NULL) { static $depth = -1; ++$depth; $files_matched = array(); $fh = opendir($start_dir); while (($file = readdir($fh)) !== false) { if (strcmp($file, '.')==0 || strcmp($file, '..')==0) continue; $filepath = $start_dir . '/' . $file; if (preg_match($pattern, ($args & PREG_FIND_FULLPATH) ? $filepath : $file)) { $doadd = is_file($filepath) || (is_dir($filepath) && ($args & PREG_FIND_DIRMATCH)) || (is_dir($filepath) && ($args & PREG_FIND_DIRONLY)); if ($args & PREG_FIND_DIRONLY && $doadd && !is_dir($filepath)) $doadd = false; if ($args & PREG_FIND_NEGATE) $doadd = !$doadd; if ($doadd) { if ($args & PREG_FIND_RETURNASSOC) { // return more than just the filenames $fileres = array(); if (function_exists('stat')) { $fileres['stat'] = stat($filepath); $fileres['du'] = $fileres['stat']['blocks'] * 512; } if (function_exists('fileowner')) $fileres['uid'] = fileowner($filepath); if (function_exists('filegroup')) $fileres['gid'] = filegroup($filepath); if (function_exists('filetype')) $fileres['filetype'] = filetype($filepath); if (function_exists('mime_content_type')) $fileres['mimetype'] = mime_content_type($filepath); if (function_exists('dirname')) $fileres['dirname'] = dirname($filepath); if (function_exists('basename')) $fileres['basename'] = basename($filepath); if (isset($fileres['uid']) && function_exists('posix_getpwuid')) $fileres['owner'] = posix_getpwuid ($fileres['uid']); $files_matched[$filepath] = $fileres; } else array_push($files_matched, $filepath); } } if ( is_dir($filepath) && ($args & PREG_FIND_RECURSIVE) ) { $files_matched = array_merge($files_matched, preg_find($pattern, $filepath, $args)); } } closedir($fh); // Before returning check if we need to sort the results. if (($depth==0) && ($args & (PREG_FIND_SORTKEYS|PREG_FIND_SORTBASENAME|PREG_FIND_SORTMODIFIED|PREG_FIND_SORTFILESIZE|PREG_FIND_SORTDISKUSAGE)) ) { $order = ($args & PREG_FIND_SORTDESC) ? 1 : -1; $sortby = ''; if ($args & PREG_FIND_RETURNASSOC) { if ($args & PREG_FIND_SORTMODIFIED) $sortby = "['stat']['mtime']"; if ($args & PREG_FIND_SORTBASENAME) $sortby = "['basename']"; if ($args & PREG_FIND_SORTFILESIZE) $sortby = "['stat']['size']"; if ($args & PREG_FIND_SORTDISKUSAGE) $sortby = "['du']"; } $filesort = create_function('$a,$b', "\$a1=\$a$sortby;\$b1=\$b$sortby; if (\$a1==\$b1) return 0; else return (\$a1<\$b1) ? $order : 0- $order;"); uasort($files_matched, $filesort); } --$depth; return $files_matched; } ?>
|
|---|
|
There is a direct link between the way in which people address each other and politeness. Here we consider three aspects of this: the use of second-person pronouns, greetings and farewells, and formulas in letters.
Second-person pronouns – voornaamwoorden van de tweede persoon There are two aspect to second-person pronouns: their form and their use. Forms of second-person pronouns In standard English there is just one second-person >>personal pronoun, you, and an associated >>possessive pronoun, your. In Dutch there are three personal pronouns: singular informal, plural informal and formal (used for singular and plural), each with an associated possessive pronoun. Moreover, the singular informal pronoun has three different forms depending on whether it is used as subject or object, or whether it is stressed or unstressed. The table below sets out the various forms.
Each of these personal pronouns has its own verb forms: for jullie this is the infinitive (verb stem + en) and for u it is verb stem + t for je/jij it is also verb stem + t except in the case of inversion, when it is just the stem. Here is an example with the verb fietsen (to ride a bike):
Use of second-person pronouns Using the appropriate pronoun is important socially. There are even special verbs in Dutch for saying je and u, which have been borrowed from French: tutoyeren and vousvoyeren. The norms for using second-person pronouns in Dutch have changed a great deal over the last fifty years. There is no evidence that they are stabilising, with much uncertainty amongst native speakers as a result. However, the situation can be summarised by saying that the informal forms are used to express solidarity and the formal forms are used to express distance. Solidarity is not necessarily the same as familiarity: two teenagers may not know each other at all (familiarity), but they still feel that they have something in common (solidarity). This is why Dutch students always address each other with the informal form of address. Despite the formal differences with English second-person pronouns, the Dutch system for using them is a bit like the English address system: in English someone is addressed with their first name to express solidarity and with their title and last name to express distance. A complicating factor is the fact that the systems are not quite the same in the Netherlands and Flanders. The southern variety of standard Dutch is slightly more conservative in its use of second-person pronouns. Moreover, Flemish colloquial speech has a different formal system with only one second-person pronoun that is used in both formal and informal situations: ge (with stressed gij). However, the object form of ge/gij is u and the possessive uw.
This is particularly important for students of Dutch when visiting Flanders, because their Flemish peers have a strong preference for using the colloquial Flemish address. Greeting and farewells – groeten en afscheid nemen Different levels of formality exist when greeting people. Expressions for saying ‘hello’ and ‘goodbye’ differ depending on how polite the speaker wants to be. Even though other factors, such as regional background, gender and level of education also play a role, the following generalisation can be made:
Formulas in letters – formules in brieven When writing a letter in Dutch, there are certain ways to address the person you are writing to, and also certain ways to close the letter, depending on how polite you want to be. This also applies to emails. Below you find an overview of some of the different forms of opening and closing a letter that are available in Dutch.
The two pieces of text below are taken from a formal (on the left) and an informal letter.
|