An Anthology of Eighteenth Century Charms is a charms reference book that appears in Goblet of Fire during the search for a way to survive the second task of the Triwizard Tournament. The Harry Potter Lexicon records that it was one of the books Harry Potter, Ron Weasley, and Hermione Granger examined while preparing for the second task, and cites chapter 26 of the novel for the mention. The research session comes to nothing: the anthology, like the other spell books the trio consults, yields no usable answer, and the problem is finally solved when Dobby brings Harry gillyweed on the morning of the task. The available references identify the title and its story function, but no author, publisher, date, or table of contents, so those details are not inferred here.
With the deadline for the Second Task approaching, Harry needs a way to stay alive underwater, and the Hogwarts Library becomes the centre of the effort. The Lexicon's chapter notes for GF26 describe the breadth of the search: books of hexes and charms, books on merpeople and water monsters, books on famous witches and wizards, and on magical inventions. An Anthology of Eighteenth Century Charms belongs to that pile, one serious reference work among many, consulted in the hope that an old charm collection might contain something the modern syllabus lacks.
The failure of the search is the point of the scene. The chapter notes record that Hermione seemed to take the library's lack of useful information as a personal insult, because it had never failed her before. None of the spell books, this anthology included, produces a way to breathe underwater; the notes add that the spell books searched did not surface the Bubble-Head Charm in any useful context. The answer arrives from outside the library altogether, when Dobby brings Harry Gillyweed on the morning of the task. A dry anthology of historical charms is exactly the kind of source that cannot help, and the scene plays that expectation for tension.