Lines Matching +defs:name +defs:pos

481     CFStringRef		name;
489 name = (CFStringRef) mac_enc_to_cfstring(menu->dname, menuTitleLen);
491 if (name)
495 mnemonicStart = CFStringFind(name, CFSTR("("), kCFCompareBackwards);
496 displayLen = CFStringGetLength(name);
500 && CFStringGetCharacterAtIndex(name,
503 if (CFStringFindWithOptions(name, CFSTR(")"),
509 cleanedName = CFStringCreateMutableCopy(NULL, 0, name);
517 CFRelease(name);
518 name = cleanedName;
524 return name;
639 && SearchData.theFile.name[0] == buf->b_FSSpec.name[0]
640 && STRNCMP(SearchData.theFile.name, buf->b_FSSpec.name, buf->b_FSSpec.name[0] + 1) == 0)
1103 /* If the file name was already in the buffer list we need to switch
1425 * Fill the buffer pointed to by outName with the name and size
1447 /* Request font name with Mac encoding (otherwise we could
1448 * get an unwanted utf-16 name) */
1455 * already part of the font full name */
2775 /* Get the font name, minus the style suffix (:h, etc) */
2796 * Try again, this time replacing underscores in the font name
2821 /* name = C2Pascal_save(menu->dname); */
3376 * the name and size of the selected font and return the font's handle,
3443 * Initialise vim to use the font with the given name. Return FAIL if the font
3484 /* Set guifont to the name of the selected font. */
3491 /* Replace spaces in the font name with underscores. */
3547 gui_mch_get_font(char_u *name, int giveErrorIfMissing)
3551 font = gui_mac_find_font(name);
3556 EMSG2(_(e_font), name);
3568 * Return the name of font "font" in allocated memory.
3569 * Don't know how to get the actual name, thus use the provided name.
3572 gui_mch_get_fontname(GuiFont font, char_u *name)
3574 if (name == NULL)
3576 return vim_strsave(name);
3727 * Return the Pixel value (color) for the given color name. This routine was
3733 gui_mch_get_color(char_u *name)
3742 char *name;
3807 if (name[0] == '#' && strlen((char *) name) == 7)
3810 r = hex_digit(name[1]) * 16 + hex_digit(name[2]);
3811 g = hex_digit(name[3]) * 16 + hex_digit(name[4]);
3812 b = hex_digit(name[5]) * 16 + hex_digit(name[6]);
3819 if (STRICMP(name, "hilite") == 0)
3824 /* Check if the name is one of the colors we know */
3826 if (STRICMP(name, table[i].name) == 0)
3851 int pos;
3862 i = sscanf(line, "%d %d %d %n", &r, &g, &b, &pos);
3866 color = line + pos;
3868 if (STRICMP(color, name) == 0)
4264 * Return OK if the key with the termcap name "name" is supported.
4267 gui_mch_haskey(char_u *name)
4272 if (name[0] == special_keys[i].vim_code0 &&
4273 name[1] == special_keys[i].vim_code1)
4519 * Clear a rectangular region of the screen from text pos (row1, col1) to
4840 CFStringRef name;
4842 char_u *name;
4857 while ((brother != NULL) && (!menu_is_menubar(brother->name)))
4865 if (!menu_is_menubar(menu->name))
4868 /* Convert the name */
4870 name = menu_title_removing_mnemonic(menu);
4872 name = C2Pascal_save(menu->dname);
4874 if (name == NULL)
4886 SetMenuTitleWithCFString((MenuRef)menu->submenu_handle, name);
4888 menu->submenu_handle = NewMenu(menu->submenu_id, name);
4919 SetMenuItemTextWithCFString(parent->submenu_handle, idx+1, name);
4921 SetMenuItemText(parent->submenu_handle, idx+1, name);
4929 CFRelease(name);
4931 vim_free(name);
4947 CFStringRef name;
4949 char_u *name;
4961 /* Convert the name */
4963 name = menu_title_removing_mnemonic(menu);
4965 name = C2Pascal_save(menu->dname);
5045 /* Set the menu item name. */
5047 SetMenuItemTextWithCFString(parent->submenu_handle, idx+1, name);
5049 SetMenuItemText(parent->submenu_handle, idx+1, name);
5058 CFRelease(name);
5060 /* TODO: Can name be freed? */
5061 vim_free(name);
5338 * dflt - Default name of file.
5410 /* TODO: Shorten the file name if possible */
5597 char_u name[256];
5676 /* Get the name of the button */
5682 name[++len] = *buttonChar;
5697 name[0] = len;
5702 /* Change the button's name */
5703 macSetDialogItemText(theDialog, button, name);
5705 /* Resize the button to fit its name */
5706 width = StringWidth(name) + 2 * dfltButtonEdge;
5746 (void) C2PascalString(message, &name);
5747 SetDialogItemText(itemHandle, name);
5748 messageItm.width = StringWidth(name);
5760 (void) C2PascalString(textfield, &name);
5761 SetDialogItemText(itemHandle, name);
5762 inputItm.width = StringWidth(name);
5875 GetDialogItemText(itemHandle, (char_u *) &name);
5877 /* Truncate the name to IOSIZE if needed */
5878 if (name[0] > IOSIZE)
5879 name[0] = IOSIZE - 1;
5881 vim_strncpy(textfield, &name[1], name[0]);
6146 /* vRefNum, dirID, name */
6191 /* Start filling fname with file.name */
6192 vim_strncpy(filenamePtr, &file.name[1], file.name[0]);
6196 theCPB.dirInfo.ioNamePtr = file.name;
6319 /* For MacOS Classic always add the volume name */
6320 /* For MacOS X add the volume name preceded by "Volumes" */
6326 /* Add the volume name */
6730 // C name mangling...